Last active
August 29, 2015 13:57
-
-
Save ghafran/9585408 to your computer and use it in GitHub Desktop.
Experiment with Kafka
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://apache.petsads.us/kafka/0.8.1/kafka_2.9.2-0.8.1.tgz | |
tar -xzf kafka_2.9.2-0.8.1.tgz | |
cd kafka_2.9.2-0.8.1 | |
bin/zookeeper-server-start.sh config/zookeeper.properties | |
bin/kafka-server-start.sh config/server.properties | |
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test | |
bin/kafka-topics.sh --list --zookeeper localhost:2181 | |
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test | |
bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning | |
bin/kafka-console-consumer.sh --zookeeper kafka1:2181 --topic log --group 1 | |
bin/kafka-console-consumer.sh --zookeeper kafka1:2181 --topic log --group 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment