https://github.com/smartcat-labs/kafka-cassandra-connector
Kafka to Cassandra connector (Cassandra sink)
https://github.com/smartcat-labs/kafka-cassandra-connector
Last synced: 2 months ago
JSON representation
Kafka to Cassandra connector (Cassandra sink)
- Host: GitHub
- URL: https://github.com/smartcat-labs/kafka-cassandra-connector
- Owner: smartcat-labs
- License: apache-2.0
- Created: 2017-08-25T10:08:29.000Z (almost 8 years ago)
- Default Branch: dev
- Last Pushed: 2017-09-15T08:13:24.000Z (over 7 years ago)
- Last Synced: 2025-02-07T11:14:40.093Z (4 months ago)
- Language: Java
- Size: 63.5 KB
- Stars: 3
- Watchers: 19
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kafka-cassandra-connector
kafka-cassandra-connector is implemented using Kafka Connect API, it represents Cassandra Sink.
It exposes two interfaces, `SinkRecordTransformer` and `StatementBuilder`. `CassandraSinkTask` uses implementations of those two interfaces to transform `SinkRecord` into CQL statement which is then sent to Cassandra cluster. Loading of concrete implementations for those two interfaces are done dynamically (see `connect.cassandra.sink-record-transformer-class` and `connect.cassandra.statement-builder-class` properties in [src/example/resources/connector.properties](src/example/resources/connector.properties) file. With this approach, one can use generic connector JAR implementation and just provide different `SinkRecordTransformer` and `StatementBuilder` implementations to classpath for different behaviour.