Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename kafkaMetadata getter in Cassandra Driver #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/scala/Main.scala
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ object Main {
KafkaSink.writeStream(streamDS)

//Finally read it from kafka, in case checkpointing is not available we read last offsets saved from Cassandra
val (startingOption, partitionsAndOffsets) = CassandraDriver.getKafaMetadata()
val (startingOption, partitionsAndOffsets) = CassandraDriver.getKafkaMetadata()
val kafkaInputDS = KafkaSource.read(startingOption, partitionsAndOffsets)

//Just debugging Kafka source into our console
2 changes: 1 addition & 1 deletion src/main/scala/cassandra/CassandraDriver.scala
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ object CassandraDriver extends LazyLogger {
* assign json string {"topicA":[0,1],"topicB":[2,4]}
* Specific TopicPartitions to consume. Only one of "assign", "subscribe" or "subscribePattern" options can be specified for Kafka source.
*/
def getKafaMetadata() = {
def getKafkaMetadata() = {
try {
val kafkaMetadataRDD = spark.sparkContext.cassandraTable(namespace, kafkaMetadata)