OS:mac Darwin Kernel Version 15.6.0
Kafka version:0.11.0.0
Use python-kafka to create a consumer, group_id = 'my_group', use the assign method to subscribe to a specific topic = 'assign_topic', partition = [0,1,2,3,4], create five consumer to consume messages, consumer.assign() do not use consumer's group Management functionality.
Now I create a new consumer, subscribe the new topic = 'subscribe_topic' using consumer.subscribe() method, the partitions can be dynamically balanced, partitions = [0,1,2,3,4], group_id = 'my_group', start the consumer.
Results: the consumer created in Step2 is running successfully with the topic of 'subscribe_topic', but the five consumers created in Step1 looks like died (the process did not throw an exception, use ps -ef can find pid is still alive), but cannot get any messages.Kafka official websitesays: It is not possible to mix both answer to specific partitions (with no load balancing) and to topics (with load balancing) using the same consumer instanc e. But the key point is that my mixed subscription is not used in a same consumer instance.
When I changed the consumer group_id in Step2, such as group_id='hello_topic', everything goes well. I am not sure what reason cause the issue. Maybe I use the consumer incorrectly. Maybe...