Errors in Hortonworks Kafka example on HDP2.2:
http://hortonworks.com/hadoop-tutorial/simulating-transporting-realtime-events-stream-apache-kafka/
When you try to start Producer command, please make sure you given IP Address (as it is unable to resolve localhost) and port number has to be changed to 6667 (not 9092).
http://hortonworks.com/hadoop-tutorial/simulating-transporting-realtime-events-stream-apache-kafka/
When you try to start Producer command, please make sure you given IP Address (as it is unable to resolve localhost) and port number has to be changed to 6667 (not 9092).
AS IS:
$ java -cp target/Tutorial-1.0-SNAPSHOT.jar com.hortonworks.tutorials.tutorial1.TruckEventsProducer localhost:9092 localhost:2181 &
TO BE:
$ java -cp target/Tutorial-1.0-SNAPSHOT.jar com.hortonworks.tutorials.tutorial1.TruckEventsProducer 10.0.2.15:6667 10.0.2.15:2181 &
The Kafka broker port number can be referred at
/usr/hdp/2.2.0.0-2041/kafka/config/server.propertiesbroker.id=0 port=6667
=================================================================
No comments:
Post a Comment