Hi All,

I want to create a topic with command "bin/kafka-topics.sh --create --zookeeper 
HOST:PORT --replication-factor 1 --partitions 1 --topic test", if the option 
"--zookeeper" could point to multi-zookeeper URLs such as 
"HOST1:PORT1,HOST2:PORT2"?
I tried it as below seems the topic only be listed under the first zookeeper 
URL. But the description of this option said "Multiple URLS can be given to 
allow fail-over." If my usage is wrong? Thanks!


# bin/kafka-topics.sh --create --zookeeper HOST1:PORT1,HOST2:PORT2 -- 
replication-factor 1 --partitions 1 --topic test
creation succeeded!

# bin/kafka-list-topic.sh --zookeeper HOST1:PORT1
topic: test     partition: 0    leader: 0       replicas: 0     isr: 0

# bin/kafka-list-topic.sh --zookeeper HOST2:PORT2
no topics exist!

# bin/kafka-topics.sh
--zookeeper <urls>                       REQUIRED: The connection string for
                                           the zookeeper connection in the form
                                           host:port. Multiple URLS can be
                                           given to allow fail-over.


Best Regards

Johnny

Reply via email to