<kafka-brokers> Compulsory argument providing comma separate list of kafka brokers
<topics> Compulsory argument providing comma separated list of kafka topics to subscribe
[checkpoint-directory] Optional argument providing checkpoint directory where the state of
the steaming query will be stored. Note that this directory needs to
be deleted manually to reset the state of the streaming query.
Default: CSVKafkaSourceExampleWithSnappySink directory under
working directory.
An example of structured streaming depicting processing of JSON coming from kafka source using snappy sink.
Example input data:
Key: USA, Value: Yin,31,Columbus,Ohio Key: USA, Value: John,44,"San Jose",California
Usage: CSVKafkaSourceExampleWithSnappySink <kafka-brokers> <topics> [checkpoint-directory]
<kafka-brokers> Compulsory argument providing comma separate list of kafka brokers <topics> Compulsory argument providing comma separated list of kafka topics to subscribe [checkpoint-directory] Optional argument providing checkpoint directory where the state of the steaming query will be stored. Note that this directory needs to be deleted manually to reset the state of the streaming query. Default:
CSVKafkaSourceExampleWithSnappySink
directory under working directory.Example: $ bin/run-example snappydata.structuredstreaming.CSVKafkaSourceExampleWithSnappySink \ "broker-1:9092,broker-2:9092" "topic1,topic2" "checkpoint_dir"