Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka_consumer plugin always return "zk: node does not exist" #1112

Closed
huangchaosuper opened this issue Apr 28, 2016 · 4 comments · Fixed by #1358
Closed

kafka_consumer plugin always return "zk: node does not exist" #1112

huangchaosuper opened this issue Apr 28, 2016 · 4 comments · Fixed by #1358
Labels
bug unexpected problem or unintended behavior

Comments

@huangchaosuper
Copy link

huangchaosuper commented Apr 28, 2016

cpu and mem data can be send to kafka if kafka as output filter

telegraf -sample-config -input-filter cpu:mem -output-filter kafka > /etc/telegraf/telegraf.conf

but telegraf will exit if use kafka_consumer as input-filter

telegraf -sample-config -input-filter kafka_consumer -output-filter influxdb > /etc/telegraf/telegraf.conf

2016/04/28 07:03:44 Starting Telegraf (version 0.12.1)
2016/04/28 07:03:44 Loaded outputs: influxdb
2016/04/28 07:03:44 Loaded inputs: kafka_consumer
2016/04/28 07:03:44 Tags enabled: host=XXXXX
2016/04/28 07:03:44 Agent Config: Interval:10s, Debug:false, Quiet:false, Hostname:"XXXXX", Flush Interval:10s
2016/04/28 07:03:44 Connected to 127.0.0.1:2181
2016/04/28 07:03:44 Authenticated: id=95801443660070949, timeout=6000
2016/04/28 07:03:44 Recv loop terminated: err=EOF
2016/04/28 07:03:44 Send loop terminated: err=
2016/04/28 07:03:44 Service for input kafka_consumer failed to start, exiting
zk: node does not exist

@sparrc
Copy link
Contributor

sparrc commented Apr 28, 2016

you need to configure the kafka_consumer input to match your environment. You have a problem with your kafka zookeeper peer

@sparrc sparrc closed this as completed Apr 28, 2016
@Aylr
Copy link

Aylr commented Jun 9, 2016

@sparrc I had the same issue and found that by changing a single line in telegraf.conf from:
zookeeper_chroot = "/"
to
zookeeper_chroot = ""

the error was resolved and I got kafka messages pulled into telegraf.

@sparrc
Copy link
Contributor

sparrc commented Jun 9, 2016

thx @Aylr, we may want to change this default

@sparrc sparrc reopened this Jun 9, 2016
@sparrc sparrc added the bug unexpected problem or unintended behavior label Jun 9, 2016
@Aylr
Copy link

Aylr commented Jun 9, 2016

And, it's important to note this is a stock install of influxdb, telegraf and zookeeper and kafka with no customizations. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants