-
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
Error when I try to consume from confluent cloud kafka broker #7985
Comments
I'm still experiencing the same issue. Apparently the sarama library has some issues with Confluent Cloud |
Is this still an issue? Looks like it sat for a bit, sorry about that. If you know of a related Sarama issue that is causing your problem, feel free to link it here. If it's no longer an issue we'd love to hear what resolved it for you. |
@wtkwsk @AlberTadrous Closing this issue. Feel free to re-open if issue persists and hasn't been resolved by sarama. |
Thanks, actually I for my part was able to resolve it after tinkering around with sarama settings for a bit. Getting the connection to work with sarama directly helped me understand the telegraf config options better:) |
@wtkwsk Do you mind sharing what you did with the sarama settings for others that may run into the same problems. We'd love to get anything useful into the documentation to assist with other. FYI @gqianse |
@sjwang90 I might be able to find my working telegraf config later, but here is my working sarama client config:
This works with the most recent paid Confluent Cloud version. |
@sjwang90 @AlberTadrous
|
Thank you @wtkwsk! |
I'm also having this issue in GCP with
with
results in
It's definitely reachable, I can |
@wrossmorrow In a previous issue that also applies to Confluent cloud, azure service bus presented TLS certs that don't match the domain name. The workaround is to find the name the confluent tls cert presents and then configure telegraf to accept that name with the Your errors don't look identical to the existing error messages for these confluent cloud issues. If these workaround don't work please let us know and open up a new issue with the pertinent telegraf configuration and error messaging info. Thanks! |
Thanks |
Relevant telegraf.conf:
[[inputs.kafka_consumer]]
brokers = ["cluster.eastus2.azure.confluent.cloud:9092"]
topics = ["test-topic"]
version = "1.1.0"
sasl_username = "Key"
sasl_password = "Secret"
sasl_version = 1
consumer_group = "telegraf"
offset = "oldest"
max_message_len = 1000000
System info:
Telegraf version: 1.15
Operating system: Centos 8
Docker
Steps to reproduce:
Expected behavior:
Connect to kafka cluster
Actual behavior:
Get Exception:
[agent] Config: Interval:1s, Quiet:false, Hostname:"", Flush Interval:10s
2020-08-14T14:57:11Z D! [agent] Initializing plugins
2020-08-14T14:57:11Z D! [agent] Connecting outputs
2020-08-14T14:57:11Z D! [agent] Attempting connection to [outputs.file]
2020-08-14T14:57:11Z D! [agent] Successfully connected to outputs.file
2020-08-14T14:57:11Z D! [agent] Starting service inputs
2020-08-14T14:57:11Z D! [sarama]
2020-08-14T14:57:11Z D! [sarama] client/metadata fetching metadata for all topics from broker cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] Failed to read SASL handshake header : unexpected EOF
2020-08-14T14:57:11Z D! [sarama] Error while performing SASL handshake cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] Closed connection to broker cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] client/metadata got error from broker -1 while fetching metadata: unexpected EOF
2020-08-14T14:57:11Z D! [sarama]
2020-08-14T14:57:11Z D! [sarama] client/brokers resurrecting 1 dead seed brokers
2020-08-14T14:57:11Z D! [sarama] client/metadata retrying after 250ms... (3 attempts remaining)
2020-08-14T14:57:11Z D! [sarama] client/metadata fetching metadata for all topics from broker cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] Failed to read SASL handshake header : unexpected EOF
2020-08-14T14:57:11Z D! [sarama] Error while performing SASL handshake cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] Closed connection to broker cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] client/metadata got error from broker -1 while fetching metadata: unexpected EOF
2020-08-14T14:57:11Z D! [sarama]
2020-08-14T14:57:11Z D! [sarama] client/brokers resurrecting 1 dead seed brokers
2020-08-14T14:57:11Z D! [sarama] client/metadata retrying after 250ms... (2 attempts remaining)
2020-08-14T14:57:11Z D! [sarama] client/metadata fetching metadata for all topics from broker cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] Failed to read SASL handshake header : unexpected EOF
2020-08-14T14:57:11Z D! [sarama] Error while performing SASL handshake cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] Closed connection to broker cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] client/metadata got error from broker -1 while fetching metadata: unexpected EOF
2020-08-14T14:57:11Z D! [sarama]
2020-08-14T14:57:11Z D! [sarama] client/brokers resurrecting 1 dead seed brokers
2020-08-14T14:57:11Z D! [sarama] client/metadata retrying after 250ms... (1 attempts remaining)
2020-08-14T14:57:11Z D! [sarama] client/metadata fetching metadata for all topics from broker cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] Failed to read SASL handshake header : unexpected EOF
2020-08-14T14:57:11Z D! [sarama] Error while performing SASL handshake cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] Closed connection to broker cluster.eastus2.azure.confluent.cloud:9092
2020-08-14T14:57:11Z D! [sarama] client/metadata got error from broker -1 while fetching metadata: unexpected EOF
2020-08-14T14:57:11Z D! [sarama]
2020-08-14T14:57:11Z D! [sarama] client/brokers resurrecting 1 dead seed brokers
2020-08-14T14:57:11Z D! [sarama]
2020-08-14T14:57:11Z E! [telegraf] Error running agent: starting input inputs.kafka_consumer: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)
Additional info:
The text was updated successfully, but these errors were encountered: