标签:serve control prope bsp esc var 个性 factor ica
zkCli.sh ls / 记住zk的根目录下内容 ls或者get /kafka/cluster/id 查看zk下的kafuka controller ls /kafka/brokers/
kafka目录下 config查看配置:server.properties
broker.id=0
listeners端口号
log.dirs=/var/kafka_data
zookeeper.connect=node02:2181,node03:2181,node04:2181/kafka
3常规操作: /etc/profile export home
4.节点同步 vi server.properties scp 个性化
kafka-server-start.sh server.properties 跑起来kafka
cd $KAFKA_HOME
创建topic kafka-topics.sh --zookeeper node02:2181,node03:2181/kafka --create --topic xxoo --partitions 2 --replication-factor 2 2个分区 2个副本
kafka-topics.sh --zookeeper node02:2181,node03:2181/kafka --list
查看详细: kafka-topics.sh --zookeeper node02:2181,node03:2181/kafka --describe --topic xxoo
查看组信息:kafka-consumer-groups.sh
标签:serve control prope bsp esc var 个性 factor ica
原文地址:https://www.cnblogs.com/forrestXu/p/14630119.html