HOWTO
$ ./bin/zookeeper-shell.sh localhost:2181 ls /brokers/ids
Connecting to localhost:2181
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[102, 103, 106]
Server config - broker.id
$ grep broker.id config/server*
config/server1.properties:broker.id=106
config/server2.properties:broker.id=102
config/server3.properties:broker.id=103
JPS
$ jps -l
20116 kafka.Kafka
19685 kafka.Kafka
22633 jdk.jcmd/sun.tools.jps.Jps
20538 kafka.Kafka
18650 org.apache.zookeeper.server.quorum.QuorumPeerMain
No comments:
Post a Comment