Write a DStream, RDD, or Dataset to Kafka
Write a DStream, RDD, or Dataset to Kafka
producer configuration for creating KafkaProducer
a function used to transform values of T type into ProducerRecords
an optional Callback to be called after each write, default value is None.
Class used to write DStreams, RDDs and Datasets to Kafka
Example usage:
It is also possible to provide a callback for each write to Kafka.
This is optional and has a value of None by default.
Example Usage: