Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

kafka consumer does not receinve messages


Hi all,

we are building a small kafka env, 4 nodes: 01.node, 02.node, 03.node, 04.node


the topic creation:

/usr/bin/kafka-topics --zookeeper 01.node:2181 --create --replication-factor 1 --partitions 1 --topic mytest


the producer and brokers:

/usr/bin/kafka-console-producer --broker-list 03.node,04.node:9092 --topic mytest


the consumer:

/usr/bin/kafka-console-consumer --bootstrap-server 01.node:2181 --topic mytest --from-beginning


the weird stuff is that consumer statement does not accept the --zookeeper option, so we put --bootstrap-server instead of it


everything seems good: producer waits for input, consumer seems waiting for messages...


but when you enter input (a string CRLF ended) on the producer, nothing happens on the consumer side...


no mesg arrive


any ideas? what we are going wrong?


thanks, bye marco



brokers seems to receive messages (see attached picture) and connections from brokers (netstat -nascreenshot.9.jpg) seems ok but consumer does not yet receive...

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.