Skip to content

StarRocks Writer ​

StarRocks Writer plugin implements writing data to StarRocks.

Configuration Example ​

This plugin is used to write data to StarRocks database. For detailed configuration and parameters, please refer to the original StarRocks Writer documentation.

json
{
  "job": {
    "setting": {
      "speed": {
        "channel": 2
      }
    },
    "content": {
      "reader": {
        "name": "streamreader",
        "parameter": {
          "column": [
            {
              "random": "1,500",
              "type": "long"
            },
            {
              "random": "1,127",
              "type": "long"
            },
            {
              "value": "this is a text",
              "type": "string"
            },
            {
              "random": "5,200",
              "type": "long"
            }
          ],
          "sliceRecordCount": 100
        }
      },
      "writer": {
        "name": "starrockswriter",
        "parameter": {
          "username": "test",
          "password": "123456",
          "column": [
            "siteid",
            "citycode",
            "username",
            "pv"
          ],
          "database": "example_db",
          "table": "table1",
          "jdbcUrl": "jdbc:mysql://172.28.17.100:9030/",
          "loadUrl": [
            "172.28.17.100:8030",
            "172.28.17.100:8030"
          ],
          "loadProps": {
            "column_separator": "\\x01",
            "row_delimiter": "\\x02"
          }
        }
      }
    }
  }
}

Parameters ​

This plugin supports writing data to StarRocks with Stream Load capabilities and configurable connection options.