TiDB
TiDB sink connector
Descriptionâ
Write data to TiDB.
tip
Engine Supported and plugin name
- Spark: TiDB
- Flink
Env Optionsâ
name | type | required | default value |
---|---|---|---|
spark.tispark.pd.addresses | string | yes | - |
spark.sql.extensions | string | yes | org.apache.spark.sql.TiExtensions |
spark.tispark.pd.addresses [string]â
TiDB Pd Address
spark.sql.extensions [string]â
Spark Sql Extensions
Optionsâ
name | type | required | default value |
---|---|---|---|
addr | string | yes | - |
port | string | yes | - |
user | string | yes | - |
password | string | yes | - |
table | string | yes | - |
database | string | yes |
addr [string]â
TiDB address, which currently only supports one instance
port [string]â
TiDB port
user [string]â
TiDB user
password [string]â
TiDB password
table [string]â
TiDB table name
database [string]â
TiDB database name
optionsâ
Refer to TiSpark Configurations
Examplesâ
env {
spark.tispark.pd.addresses = "127.0.0.1:2379"
spark.sql.extensions = "org.apache.spark.sql.TiExtensions"
}
tidb {
addr = "127.0.0.1",
port = "4000"
database = "database",
table = "tableName",
user = "userName",
password = "***********"
}