Cassandra
Cassandra sink connector
Descriptionâ
Write data to Apache Cassandra.
Key featuresâ
Optionsâ
name | type | required | default value |
---|---|---|---|
host | String | Yes | - |
keyspace | String | Yes | - |
table | String | Yes | - |
username | String | No | - |
password | String | No | - |
datacenter | String | No | datacenter1 |
consistency_level | String | No | LOCAL_ONE |
fields | String | No | LOCAL_ONE |
batch_size | String | No | 5000 |
batch_type | String | No | UNLOGGER |
async_write | String | No | true |
host [string]â
Cassandra
cluster address, the format is host:port
, allowing multiple hosts
to be specified. Such as
"cassandra1:9042,cassandra2:9042"
.
keyspace [string]â
The Cassandra
keyspace.
table [String]â
The Cassandra
table name.
username [string]â
Cassandra
user username.
password [string]â
Cassandra
user password.
datacenter [String]â
The Cassandra
datacenter, default is datacenter1
.
consistency_level [String]â
The Cassandra
write consistency level, default is LOCAL_ONE
.
fields [array]â
The data field that needs to be output to Cassandra
, if not configured, it will be automatically adapted
according to the sink table schema
.
batch_size [number]â
The number of rows written through Cassandra-Java-Driver each time,
default is 5000
.
batch_type [String]â
The Cassandra
batch processing mode, default is UNLOGGER
.
async_write [boolean]â
Whether cassandra
writes in asynchronous mode, default is true
.
Examplesâ
sink {
Cassandra {
host = "localhost:9042"
username = "cassandra"
password = "cassandra"
datacenter = "datacenter1"
keyspace = "test"
}
}
Changelogâ
2.3.0â
- Add Cassandra Sink Connector