Skip to content

fhuertas/cassandra-sink-spark-structured-streaming

Repository files navigation

sink-cassandra-structured-streaming

Build Status Coverage Status

Unoffical sink for cassandra for spark structured streaming. This connector only support append mode

Usage

First, you should include the dependency in your code.

libraryDependencies += "com.fhuertas" %% "cassandra_sink_2.2.0" % "1.0.0"
// Or 
libraryDependencies += "com.fhuertas" %% "cassandra_sink_2.2.1" % "1.0.0"

This connector is used like others structured streaming connectors. This is a code example that how to use the connectors

dataframe.writeStream.options(...).start()

You can see an example in the test: CassandraSinkTest

About

Unoffical sink for cassandra for spark structured streaming

Resources

License

Stars

Watchers

Forks

Packages

No packages published