Last active
September 22, 2015 13:20
-
-
Save swallentin/8a03beabe0b3f76a3375 to your computer and use it in GitHub Desktop.
KAFKA Management Snippers
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
kafka-topics.sh --create --topic mytopic --zookeeper localhost:2181 --partitions 1 --replication-factor 1 |
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
./kafka-topics.sh --zookeeper 172.31.44.217:2181 --alter --topic testforspark --partitions 3 |
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
/kafka-console-consumer.sh --zookeeper 172.31.44.217:2181 --topic testforspark --from-beginning |
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
./kafka-console-producer.sh --broker-list 172.31.35.211:9092,172.31.41.6:9092,172.31.38.135:9092 --topic testforspark |
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
zookeeper-server-start.sh $KAFKA_HOME/config/zookeeper.properties | |
kafka-server-start.sh $KAFKA_HOME/config/server.properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment