-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Docker image cannot connect to kafka(both in/out) using SASL/SCRAM #6072
Comments
I don't know what is the issue root cause as I have tried to connect to same kafka service using Python->confluent-kafka which can send and receive message normally |
Are you able to do a packet trace to determine where the packets are being dropped? |
I used tcpdump to trace packets. Result are listed here |
I used cloudkarafka to demo the status here |
@phillui-37 do you mind trying again with the new logging addition Daniel just made?
|
I used image you have provided and still have the same result |
Can you run it with the |
Thanks @phillui-37, connection is fine but it looks like the server closes the connection once the SASL handshake is sent. Would you be able to check the logs from one of the Kafka servers for any clues? Also, it might be helpful if you could put together a small sample program with your python code that can connect and send a message. Finally, there is one connection option that we don't expose from Telegraf that perhaps could be of interest. Here is the library documentation:
|
There is no logs provided by cloudkarfka free account, sorry... |
Looks like support for SASL/SCRAM requires a newer version of the sarama library than we have in Telegraf right now. I'll try to put together a new build tomorrow with the updated library for testing. |
Give one of these builds a shot, you will need to add [[outputs.kafka]]
sasl_mechanism = "SCRAM-SHA-256"
sasl_username = "foo"
sasl_password = "foo" |
still not work |
I opened an issue upstream with the Sarama project: IBM/sarama#1427 |
Any updates? I'm still facing the same issue on version 1.14.1 |
It'd be great to try it with Sarama v1.26.4 as it seems to have no issues with scram-based auth |
Facing this today. Any updates on this particular issue? |
@danielnelson Can you share the repo of the telegraf fork which worked for you when connecting to kafka having SASL/SCRAM based authentication? |
@phillui-37 can you share telegraf fork which worked for you when connecting to kafka having SASL/SCRAM based authentication? I just need to see the implementation details. |
Closed in #8318 |
Relevant telegraf.conf:
System info:
System: OSX 10.14.5/Arch Linux 5.1.15
Docker: (OSX) 18.09.2, build 6247962/ (Arch Linux) 18.09.7-ce, build 2d0083d657
Telegraf: 1.11.1 (edge docker image)
librdkafka: 1.1.0
Steps to reproduce:
Start the two telegraf docker instances with the two configs.
Expected behavior:
Connection is build between influxdb and kafka. Data synchronization start automatically.
Actual behavior:
Error occur and instance crash. Instance cannot connect to kafka. Telnet direct connect test ok.
Additional info:
influx -> kafka
kafka -> influx
telnet test
The text was updated successfully, but these errors were encountered: