I would like to write to kafka from spark stream data. I know that I can use KafkaUtils to read from kafka. But, KafkaUtils doesn't provide API to write to kafka.
I checked past question and sample code.
Is Above sample code the most simple way to write to kafka? If I adopt way like above sample, I must create many classes...
Do you know more simple way or library to help to write to kafka?
