Apache Kafka Client Library for Go
Prerequisites:
- Install Golang http://golang.org/doc/install
- Make sure env variables GOPATH and GOROOT exist and point to correct places
- Install GPM https://github.com/pote/gpm
- go get github.com/stealthly/go_kafka_client && cd $GOPATH/src/github.com/stealthly/go_kafka_client
- gpm install
Optional (for all tests to work):
- Download Apache Zookeeper http://zookeeper.apache.org/releases.html#download
- Add environment variable ZOOKEEPER_PATH poiting to the root of Zookeeper distribution
- Download Apache Kafka http://kafka.apache.org/downloads.html. *Note: we used kafka_2.10-0.8.1.1 for this development
- Add environment variable KAFKA_PATH pointing to the root of Kafka distribution
- cd $GOPATH/src/github.com/stealthly/go_kafka_client && go test -v
- All tests should pass
After this is done you're ready to write some code!