Doris
Doris sink connector
Description:โ
Write Data to a Doris Table.
Engine Supported and plugin name
- Spark: Doris
- Flink: DorisSink
Optionsโ
- Spark
- Flink
name | type | required | default value |
---|---|---|---|
fenodes | string | yes | - |
database | string | yes | - |
table | string | yes | - |
user | string | yes | - |
password | string | yes | - |
batch_size | int | yes | 100 |
doris.* | string | no | - |
fenodes [string]โ
Doris FE address:8030
database [string]โ
Doris target database name
table [string]โ
Doris target table name
user [string]โ
Doris user name
password [string]โ
Doris user's password
batch_size [string]โ
Doris number of submissions per batch
Default value๏ผ5000
doris. [string]โ
Doris stream_load properties,you can use 'doris.' prefix + stream_load properties More Doris stream_load Configurations
name | type | required | default value |
---|---|---|---|
fenodes | string | yes | - |
database | string | yes | - |
table | string | yes | - |
user | string | yes | - |
password | string | yes | - |
batch_size | int | no | 100 |
interval | int | no | 1000 |
max_retries | int | no | 1 |
doris.* | - | no | - |
parallelism | int | no | - |
fenodes [string]โ
Doris FE http address
database [string]โ
Doris database name
table [string]โ
Doris table name
user [string]โ
Doris username
password [string]โ
Doris password
batch_size [int]โ
Maximum number of lines in a single write Doris,default value is 5000.
interval [int]โ
The flush interval millisecond, after which the asynchronous thread will write the data in the cache to Doris.Set to 0 to turn off periodic writing.
Default value ๏ผ5000
max_retries [int]โ
Number of retries after writing Doris failed
doris.* [string]โ
The doris stream load parameters.you can use 'doris.' prefix + stream_load properties. eg:doris.column_separator' = ',' More Doris stream_load Configurations
parallelism [Int]โ
The parallelism of an individual operator, for DorisSink
Examplesโ
- Spark
- Flink
Doris {
fenodes="0.0.0.0:8030"
database="test"
table="user"
user="doris"
password="doris"
batch_size=10000
doris.column_separator="\t"
doris.columns="id,user_name,user_name_cn,create_time,last_login_time"
}
DorisSink {
fenodes = "127.0.0.1:8030"
database = database
table = table
user = root
password = password
batch_size = 1
doris.column_separator="\t"
doris.columns="id,user_name,user_name_cn,create_time,last_login_time"
}