Source plugin: Tidb [Spark]
Read data from Tidb.
name | type | required | default value |
---|---|---|---|
spark.tispark.pd.addresses | string | yes | - |
spark.sql.extensions | string | yes | org.apache.spark.sql.TiExtensions |
your pd servers
default value : org.apache.spark.sql.TiExtensions
name | type | required | default value |
---|---|---|---|
database | string | yes | - |
pre_sql | string | yes | - |
Tidb database
sql script
Source Plugin common parameters, refer to Source Plugin for details
env {
spark.tispark.pd.addresses = "192.168.0.1:2379"
spark.sql.extensions = "org.apache.spark.sql.TiExtensions"
}
source {
tidb {
database = "test"
pre_sql = "select * from table1"
}
}