Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka, mail # user - Kafka List Topic Command O/P and Jconsole o/p differs


Copy link to this message
-
Kafka List Topic Command O/P and Jconsole o/p differs
Monika Garg 2013-11-20, 09:50
Hi,
I am getting a very surprising case :

I am having a 2 nodes Kafka cluster and created some topics.

When I am running the command :

*bin/kafka-list-topic.sh --zookeeper 192.168.145.119:2181
<http://192.168.145.119:2181>*,

I am getting the below output:
topic: sample-tick    partition: 0    leader: -1    replicas: 2    isr:
topic: stock-tick    partition: 0    leader: -1    replicas: 2    isr:
topic: topic1    partition: 0    leader: -1    replicas: 2,1    isr:
topic: topic1    partition: 1    leader: -1    replicas: 1,2    isr:
topic: topic1    partition: 2    leader: -1    replicas: 2,1    isr:
topic: topic1    partition: 3    leader: -1    replicas: 1,2    isr:
topic: topic1    partition: 4    leader: -1    replicas: 2,1    isr:

But in my jconsole,no topic is shown in the Mbean regarding any topic.While
earlier I was getting the Mbean like:

*"kafka.server":type="BrokerTopicMetrics",name="topic1-BytesInPerSec"*
*"kafka.server":type="BrokerTopicMetrics",name="stock-tick-BytesInPerSec"*

I am not getting any clue of this surprised behavior.

--
*Moniii*