Readme and code fix for Go sample (#82)
* Readme and code fix for Go sample * -
This commit is contained in:
Родитель
bd45a9fbe4
Коммит
a4aee0346f
|
@ -13,6 +13,11 @@ In addition:
|
|||
* [Go Tools Distribution](https://golang.org/doc/install)
|
||||
* [Git](https://www.git-scm.com/downloads)
|
||||
* On Ubuntu, you can run `sudo apt-get install git` to install Git.
|
||||
* Go language
|
||||
* On Ubuntu, run `sudo apt-get install golang`.
|
||||
* [Add Confluent APT repository](https://docs.confluent.io/current/installation/installing_cp/deb-ubuntu.html#get-the-software) if needed
|
||||
* [Install librdkafka](https://github.com/edenhill/librdkafka)
|
||||
* On Ubuntu, run `sudo apt-get install librdkafka-dev`.
|
||||
|
||||
## Create an Event Hubs namespace
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
func main() {
|
||||
consumerGroup := "consumergroup"
|
||||
|
||||
https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md
|
||||
// https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md
|
||||
c, err := kafka.NewConsumer(&kafka.ConfigMap{
|
||||
"bootstrap.servers": os.Getenv("KAFKA_EVENTHUB_ENDPOINT"),
|
||||
"sasl.mechanisms": "PLAIN",
|
||||
|
|
Загрузка…
Ссылка в новой задаче