Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 05-17-2016 12:28 PM - edited 09-16-2022 03:20 AM
Hi,
I'm testing Kafka sending messages by running below commands from seperate terminals.
bin/kafka-console-producer --broker-list localhost:9092 --topic kafkatest
This is a message
This is another message
On another terminal:
bin/kafka-console-consumer --zookeeper localhost:2181 --topic kafkatest --from-beginning
No brokers found in ZK.
Why the above messages don't show up on consumer terminal? This is CDH5.5.2 with Parcel deployment.
What am I missing on CDH/CM configurations?
Thanks very much,
Silaphet
Created 05-25-2016 02:06 PM
Hi Pd,
Yes, extra space was the root cause. Thanks very much for great trick.
Thanks,
Silaphet
Created on 05-19-2016 11:01 AM - edited 05-19-2016 11:01 AM
What is the value of your "ZooKeeper Root" set to in the kafka service configuration?
If it is set to something like "/kafka", you'll need to specify that in your zk string:
bin/kafka-console-consumer --zookeeper localhost:2181 /kafka --topic kafkatest --from-beginning
What version of kafka parcel are you using?
-pd
Created 05-25-2016 10:52 AM
Hi,
Sorry for the delay. The "Zookeeper Root" is /kafa. I ran below command still no luck.
bin/kafka-console-consumer --zookeeper localhost:2181 /kafka --topic kafkatest --from-beginning
I tried FQN instead of localhost still no luck. Tried different Zookeeper node still the same. The Kafka version is
KAFKA-2.0.1-1.2.0.1.p0.5
Please let me if there is another option to try.
Thanks,
Silaphet
Created 05-25-2016 01:41 PM
Created 05-25-2016 02:06 PM
Hi Pd,
Yes, extra space was the root cause. Thanks very much for great trick.
Thanks,
Silaphet
Created 05-25-2016 08:52 PM
Created 11-22-2016 02:34 AM
i came across this problem too.
I have zookeeper and kafka in seperate hosts.
i ran these commands:
bin/kafka-server-start.sh config/server.properties
bin/kafka-topics.sh --create --zookeeper server1:2181 --replication-factor 1 --partitions 1 --topic mobile_events
This has created topics in the kafka dir.
bin/kafka-console-producer.sh --broker-list server1:9092 --topic mobile_events.
This opens a terminal to type in the messages, but the messages are not being saved in the topics as i cheked the kafka data dir.
Finally,
bin/kafka-console-consumer.sh --zookeeper server1:2181 --topic mobile_events --from-beginning
Is throwing "No brokers fround in the ZK" log to the console.
Can you help me with fixing the issue.
Thanks in advance.
Created 11-22-2016 08:26 AM
What does the output of:
kafka-topics --describe --zookeeper server1:2181
show?
-pd
Created 11-23-2016 05:25 AM
Created 01-03-2017 11:52 PM
i was pointinn to a wrong broker so the zk was unable to find the topics