Druid connector


Druid connector

Parent document: Connectors

BitSail Druid connector supports writing druid data-sources.

Maven dependency

<dependency>
   <groupId>com.bytedance.bitsail</groupId>
   <artifactId>connector-druid</artifactId>
   <version>${revision}</version>
</dependency>

Druid Writer

Supported data type

Support common Druid data types:

  • Long
  • Float
  • Double
  • String

Supported operation type

Support the following operations:

  • INSERT

Parameters

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"
    }
  }
}

Necessary parameters

Param nameRequiredOptional valueDescription
classyesDruid writer's class name, com.bytedance.bitsail.connector.druid.sink.DruidSink
datasourceyesDruid DataSource to write
coordinator_urlyesDruid master addresses. Format is <host>:<port>
columnsyesThe name and type of columns to write

Configuration example: Druid connector example