Created
December 3, 2014 07:11
-
-
Save wangxiangyu/2fb73be1266fd74cd9e5 to your computer and use it in GitHub Desktop.
Two consumers belong to the same group get the same message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kafka import KafkaClient,SimpleConsumer | |
broker_list='172.16.29.216:9093,172.16.29.216:9092' | |
kafka = KafkaClient(broker_list) | |
consumer=SimpleConsumer(kafka,'my-group','test') | |
for message in consumer: | |
print message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment