topic

1
2
cd /home/kafka/kafka_2.10-0.10.0.1/bin
./kafka-topics.sh --list --zookeeper 172.16.11.5:2188/kafka-10

producer

1
2
cd /home/kafka/kafka_2.10-0.10.0.1/bin
./kafka-console-producer.sh --broker-list 172.16.11.5:9094 --topic topic_test001

consumer

1
2
cd /home/kafka/kafka_2.10-0.10.0.1/bin
./kafka-console-consumer.sh --zookeeper 172.16.11.5:2188/kafka-10 --topic topic_test001

zookeeper:

1
2
cd /home/kafka/zookeeper-3.4.5-cdh5.1.2/bin
./zkCli.sh -server 172.16.11.5:2188