GithubHelp home page GithubHelp logo

isabella232 / cdc-apache-cassandra Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datastax/cdc-apache-cassandra

0.0 0.0 0.0 33.66 MB

Datastax CDC for Apache Cassandra

License: Apache License 2.0

Shell 0.95% Java 98.59% Dockerfile 0.46%

cdc-apache-cassandra's Introduction

DataStax CDC for Apache Cassandra

CI documentation release GitHub release

The DataStax CDC for Apache Cassandra requires:

  • DataStax Change Agent for Apache Cassandra, which is an event producer deployed as a JVM agent on each Cassandra data node.
  • Datastax Source Connector for Apache Pulsar, which is source connector deployed in your streaming platform.

Cassandra-source-connector

Supported streaming platform:

  • Apache Pulsar 2.8.1+
  • Datastax Luna Streaming 2.8.0.1.1.40+

Supported Cassandra version:

  • Cassandra 3.11+
  • Cassandra 4.0+
  • Datastax Enterprise Server 6.8.16+

Note: Only Cassandra 4.0 and DSE 6.8.16+ support the near realtime CDC allowing to replicate data as soon as they are synced on disk.

Documentation

All documentation is available online here.

See the QUICKSTART.md page.

Demo

Cassandra data replicated to Elasticsearch:

  • Create a Cassandra table with cdc enabled
  • Deploy a Cassandra source and an Elasticsearch sink into Apache Pulsar
  • Writes into Cassandra are replicated to Elasticsearch.

asciicast

Monitoring

You can collect Cassandra/DSE and Pulsar metrics into Prometheus, and build a Grafana dashboard with:

  • The CQL read latency from the Cassandra Source Connector
  • The replication latency from the Cassandra Source Connector (computed from the Cassandra writetime)
  • The CDC disk space used in the cdc_raw directory (for DSE only)
  • The mutation sent throughput from a Cassandra node
  • The pulsar events and data topic rate in

CDC Dashboard

Limitations

  • Does not replay logged batches
  • Does not manage table truncates
  • Does not manage TTLs
  • Does not support range deletes
  • Does not sync data available before starting the CDC agent.
  • CQL column names must not match a Pulsar primitive type name (ex: INT32)

Supported data types

Cassandra supported CQL3 data types (with the associated AVRO type or logical-type):

  • text (string), ascii (string)
  • tinyint (int), smallint (int), int (int), bigint (long), double (double), float (float),
  • inet (string)
  • decimal (cql_decimal), varint (cql_varint), duration (cql_duration)
  • blob(bytes)
  • boolean (boolean)
  • timestamp (timestamp-millis), time (time-micros), date (date)
  • uuid, timeuuid (uuid)
  • User Defined Types (record)
  • Collection types: ** list (array) ** set (array) ** map (map)

Build from the sources

./gradlew assemble

Acknowledgments

Apache Cassandra, Apache Pulsar, Cassandra and Pulsar are trademarks of the Apache Software Foundation. Elasticsearch, is a trademark of Elasticsearch BV, registered in the U.S. and in other countries.

cdc-apache-cassandra's People

Contributors

nicoloboschi avatar cdbartholomew avatar mendonk avatar kijanowski avatar johnwfrancis avatar johnsmartco avatar eolivelli avatar jgillenwater avatar msmygit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.