# Kafka publish failed with: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)

**URL:** https://discuss.elastic.co/t/kafka-publish-failed-with-kafka-client-has-run-out-of-available-brokers-to-talk-to-is-your-cluster-reachable/274805
**Category:** Beats
**Tags:** filebeat
**Created:** [June 2, 2021, 10:55pm UTC](https://discuss.elastic.co/t/kafka-publish-failed-with-kafka-client-has-run-out-of-available-brokers-to-talk-to-is-your-cluster-reachable/274805 "2021-06-02T22:55:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![suyannam](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@suyannam](https://discuss.elastic.co/u/suyannam)
#### Post date: [June 2, 2021, 10:55pm UTC](https://discuss.elastic.co/t/kafka-publish-failed-with-kafka-client-has-run-out-of-available-brokers-to-talk-to-is-your-cluster-reachable/274805/1 "2021-06-02T22:55:15Z")

</div>

Dear friends, need your help.  
For last couple of days stuck with below error. we are trying to send application logs to kafka, below is the kafka output config. We want to use kerberose auth type. I am not sure whether SSL settings are required. It would be really great if anyone helps me on this issue.  
Note: Masked sensitive info  
output.kafka:

# initial brokers for reading cluster metadata

hosts: ["xxxxxx:port", "xxx:9092", "xx:9092"]  
kerberos.enabled: true  
kerberos.auth\_type: keytab  
kerberos.username: "xxxxx"  
kerberos.password: "xxxxx"  
kerberos.keytab: "/usr/share/tomcat/conf/xxxx.keytab"  
kerberos.service\_name: "cdkafka"  
kerberos.config\_path: "/usr/share/tomcat/conf/krb5.conf"  
kerberos.realm: "[xxx.com](http://xxx.com)"  
username: "xxxx"  
password: "xxxx"

# message topic selection + partitioning

topic: 'TP.xxxx'  
partition.round\_robin:  
reachable\_only: false  
ssl.enabled: false  
ssl.certificate: "./xxx.pem"  
ssl.key: "./xx.key"  
required\_acks: 1  
compression: none  
max\_message\_bytes: 1000000

---

<div class="post-metadata">

### Author: ![suyannam](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@suyannam](https://discuss.elastic.co/u/suyannam)
#### Post date: [June 10, 2021, 2:56am UTC](https://discuss.elastic.co/t/kafka-publish-failed-with-kafka-client-has-run-out-of-available-brokers-to-talk-to-is-your-cluster-reachable/274805/2 "2021-06-10T02:56:08Z")

</div>

Friends can anyone help to resolve above issue?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 8, 2021, 4:56am UTC](https://discuss.elastic.co/t/kafka-publish-failed-with-kafka-client-has-run-out-of-available-brokers-to-talk-to-is-your-cluster-reachable/274805/3 "2021-07-08T04:56:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
