optiopay / kafka

Go driver for Kafka

Home Page:https://godoc.org/github.com/optiopay/kafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when run example in README.md

supereagle opened this issue · comments

I run the example in README.md after set the correct kafkaAddrs, it has error:
2016/12/02 18:01:34 cannot create kafka consumer for my-messages:0: unknown topic or partition (3)

Finally, I find that I need to config the brocker to allow topic creation. I think there is need to set AllowTopicCreation=true in the example, otherwise the user need to manually create the topic my-messages in advance.