I am executing Kafka's ConsumerGroupExample consumer which hangs waiting for a message
It appears it is hanging waiting for a message (waiting in example at https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Group+Example, at "for (final KafkaStream stream : streams)"
Configuration details: (a) running in VMPlayer, Ubuntu operating system; (b) running Kafka version : 0.8.0; (c) running zookeeper, kafka, consumer and producer on same VM (ubuntu/localhost); (d) using zookeeper that is bundled with this version of Kafka; (e) running Producer example (unchanged, available at cwiki.apache.org/confluence/display/KAFKA/); (f) running Consumer Group example (unchanged, ConsumerGroupExample); (g) successfully setup a topic (kafka-create-topic)
A few of the steps I have taken: (a) repeatedly stopped / started zookeeper, kafka brokers; (b) had producer issuing messages before consumer started; (c) had consumer running before producer (and then having producer send messages); (d) verified that kafka's console consumer (kafka-console-consumer) works and can consume messages issued by the producer; (e) no errors/exceptions in the logs
In all cases I have tried, the consumer (ConsumerGroupExample) hangs waiting for a message despite evidence that there are many messages in the queue.
Is there a configuration problem that I am missing?
Any help is much appreciated!