11-03 1,115 views
Step 1: Download the code
tar -xzf kafka_2.11-1.0.0.tgz
cd kafka_2.11-1.0.0
Step 2: Start the server
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
Exception
vim config/server.properties listeners=PLAINTEXT://172.16.4.137:9092 # vim config/producer.properties bootstrap.servers=172.16.4.137:9092 # vim config/consumer.properties bootstrap.servers=172.16.4.137:9092Step 3: Create a topic
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test bin/kafka-topics.sh --list --zookeeper localhost:2181
