pykafka icon indicating copy to clipboard operation
pykafka copied to clipboard

why controller must present in cluster ?

Open yorkhellen opened this issue 7 years ago • 2 comments

hi all: I got a key error exception when using pykafka KeyError: 'Controller ID 200 not present in cluster' and I read the cluster.py https://github.com/Parsely/pykafka/blob/master/pykafka/cluster.py image I don't know why controller must present in cluster , anyone can help. thx

yorkhellen avatar Dec 10 '18 07:12 yorkhellen

Thanks for the report, @yorkhellen. Can you post some code that generates this issue when you run it? It's not clear from your post how this is being triggered.

emmettbutler avatar Dec 10 '18 17:12 emmettbutler

I got the stack information image i just new a kafka producer to send my app log message. and i read the https://github.com/Parsely/pykafka/blob/master/pykafka/cluster.py image it will throw exception if the controller broker not in the self._brokers。

yorkhellen avatar Dec 11 '18 01:12 yorkhellen