- Cluster Setting
- setting zookeeper cluster
- process at each cluster node
- cd $KAFKA_HOME
- vim config/server.properties
- edit
- bin/kafka-server-start.sh config/server.properties & / sudo bin/kafka-server-start.sh -daemon config/test.properties &
- Basic Test
- bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 3 --partitions 1 --topic rep-test
- bin/kafka-topics.sh --list --zookeeper localhost:2181
- bin/kafka-topics.sh --describe --zookeeper localhost:2181 --topic rep-test
- bin/kafka-console-producer.sh --broker-list localhost:9092 --topic rep-test
test 1
test 2
test 3 - bin/kafka-console-consumer.sh --zookeeper localhost:2181 --from-beginning --topic rep-test
- Fault Tolerance Test
- kill the leader
- do the basic test again
- start the killed server again
- do the basic test again
Monday, November 30, 2015
Kafka test
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.