Parent document: Connectors
BitSail Druid connector supports writing druid data-sources.
<dependency>
<groupId>com.bytedance.bitsail</groupId>
<artifactId>connector-druid</artifactId>
<version>${revision}</version>
</dependency>
Support common Druid data types:
- Long
- Float
- Double
- String
Support the following operations:
- INSERT
The following mentioned parameters should be added to job.writer
block when using, for example:
{
"job": {
"writer": {
"class": "com.bytedance.bitsail.connector.druid.sink.DruidSink",
"datasource": "testDruidDataSource",
"coordinator_url": "localhost:8888"
}
}
}
Param name | Required | Optional value | Description |
---|---|---|---|
class | yes | Druid writer's class name, com.bytedance.bitsail.connector.druid.sink.DruidSink |
|
datasource | yes | Druid DataSource to write | |
coordinator_url | yes | Druid master addresses. Format is <host>:<port> |
|
columns | yes | The name and type of columns to write |
Configuration example: Druid connector example