KAFKA常用命令

bin/kafka-run-class.sh kafka.tools.ConsumerOffsetChecker --zookeeper zookeeper1:2181/kafka --topic  maxevent --group maxent_sessionizer

 

cat bb.txt | bin/kafka-console-producer.sh --broker-list kafka1:9092  --topic session2ceptest


bin/kafka-console-producer.sh --broker-list maxcd01-dev02:9092  --topic log_risk_service_call

 

  bin/kafka-topics.sh --list --zookeeper maxcd01-dev01:2181/kafka

 

bin/kafka-topics.sh --delete  --zookeeper maxcd01-dev01:2181/kafka --topic cep2fe

bin/kafka-topics.sh --create --zookeeper maxcd01-dev01:2181/kafka --replication-factor 1 --partitions 1 --topic session2cep

 

bin/kafka-console-consumer.sh --zookeeper maxcd01-dev01:2181/kafka --from-beginning --topic log_id_system_v2_call

 

你可能感兴趣的:(kafka)