We want to write a simple kafka producer on our HDP 2.4 cluster .( 1 master 3 datanode.)
for loop is working but,the messages was not sent to kafka topic.
I have tried more different value for bootstrap.servers parameters but still not working.
There is no ERROR or WARNING in log files about that.
console producer and consumer are working ;
../bin/kafka-console-producer.sh --broker-list lat01bigdatahwdn:6667 --topic testtopic
../bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic testtopic --from-beginning
props.put("bootstrap.servers", "localhost:9092"); with these line, producer is working on MS windows OS.
server.properties and producer.xml are as follows;