Parameter | Description | Data type | Required | Default value | Remarks |
type
| The connector name. | String | Yes | No default value | Set the value to starrocks . |
name
| The display name of the sink. | String | No | No default value | N/A. |
jdbc-url
| The JDBC URL that is used to connect to the database. | String | Yes | No default value | You can specify multiple URLs. Separate the URLs with commas (, ). Example: jdbc:mysql://fe_host1:fe_query_port1,fe_host2:fe_query_port2,fe_host3:fe_query_port3 . |
load-url
| The HTTP URL that is used to connect to the FE node. | String | Yes | No default value | You can specify multiple URLs. Separate the URLs with semicolons (; ). Example: fe_host1:fe_http_port1;fe_host2:fe_http_port2 . |
username
| The username that is used to connect to the StarRocks database. | String | Yes | No default value | The SELECT and INSERT permissions on the destination table must be granted to the user. You can grant the required permissions to the user by using the GRANT command of StarRocks. |
password
| The password that is used to connect to the StarRocks database. | String | Yes | No default value | N/A. |
sink.semantic
| The semantics for data writing. | String | No | at-least-once | Valid values: |
sink.label-prefix
| The label prefix that is used for Stream Load. | String | No | No default value | N/A. |
sink.connect.timeout-ms
| The timeout period for HTTP connections. | Integer | No | 30000 | Unit: milliseconds. Valid values: 100 to 60000. |
sink.wait-for-continue.timeout-ms
| The timeout period for the client to wait for a 100 Continue response from the server. | Integer | No | 30000 | Unit: millisecond. Valid values: 3000 to 600000. |
sink.buffer-flush.max-bytes
| The size of data that can be cached in the memory before data is written to the StarRocks database. | Long | No | 157286400 | Unit: bytes. Valid values: 64 MB to 10 GB. Note The cache space is shared among all tables. When the cache size reaches the specified value, the connector performs a flush operation on multiple tables. To improve the throughput, you can increase the value of this parameter. However, this may increase the data import latency.
|
sink.buffer-flush.max-rows
| The number of records that can be cached in the memory before data is written to the StarRocks database. | Long | No | 500000 | Valid values: 64000 to 5000000. |
sink.buffer-flush.interval-ms
| The interval between two consecutive flush operations for each table. | Long | No | 300000 | Unit: millisecond. |
sink.max-retries
| The maximum number of retries. | Long | No | 3 | Valid values: 0 to 1000. |
sink.scan-frequency.ms
| The interval between two consecutive checks to detect whether a flush operation needs to be performed. | Long | No | 50 | Unit: millisecond. |
sink.io.thread-count
| The number of threads during data import in the Stream Load mode. | Integer | No | 2 | N/A. |
sink.at-least-once.use-transaction-stream-load
| Specifies whether to use the Stream Load transaction interface for data import. | Boolean | No | true | The setting of this parameter takes effect only when a supported database is used. |
sink.properties.*
| The additional parameters that are provided for the sink. | String | No | No default value | You can view the supported parameters in the Stream Load mode. |
table.create.num-buckets
| The number of buckets of an automatically created table. | Integer | No | No default value | StarRocks 2.5.7 and later: This parameter is optional. The number of buckets can be automatically specified. For more information, see Data distribution. StarRocks 2.5.6 and earlier: This parameter is required.
|
table.create.properties.*
| The additional parameters to be specified when a table is automatically created. | String | No | No default value | For example, you can add the 'table.create.properties.fast_schema_evolution' = 'true' configuration to enable the fast schema evolution feature. For more information, see the StarRocks documentation. |
table.schema-change.timeout
| The timeout duration for a schema change operation. | Duration | No | 30 min | The value of this parameter must be set to an integer. Unit: seconds. Note If the duration of a schema change operation exceeds the value specified by this parameter, the deployment fails. |