Dowload Lastest Books On Hadoop

Amazon Best Deal !!

Powered by Blogger.

Tuesday, March 28, 2017

KAFKA INSTALLATION


Kafka installation

·       Install zookeeper
·      Install Kafka
·      Set the home path in .bashrc file
·      Start zookeeper

sudo bin/zkServer.sh start

·      To start Kafka server:-

sudo bin/kafka-server-start.sh config/server.properties


·      Create the Topic:-

bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic hellokafka


·      Start Producer to Send Messages:-

 bin/kafka-console-producer.sh --broker-list localhost:9092 --topic hellokafka



·      Start Consumer to Receive Messages:-

bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic hellokafka --from-beginning