Getting the follow error when testing telegraf
[root@scottsys ~]# telegraf --config /etc/telegraf/telegraf.conf --test
2021-02-16T22:47:14Z I! Starting Telegraf 1.17.2
2021-02-16T22:47:14Z D! [agent] Initializing plugins
2021-02-16T22:47:14Z W! [kafka] enable_tls is deprecated, and the setting does nothing, you can safely remove it from the config
2021-02-16T22:47:14Z D! [sarama] Initializing new client
2021-02-16T22:47:14Z D! [sarama] client/metadata fetching metadata for all topics from broker localhost:9092
2021-02-16T22:47:14Z D! [sarama] Connected to broker at localhost:9092 (unregistered)
2021-02-16T22:47:14Z D! [sarama] client/metadata got error from broker -1 while fetching metadata: read tcp [::1]:48890->[::1]:9092: read: connection reset by peer
2021-02-16T22:47:14Z D! [sarama] Closed connection to broker localhost:9092
2021-02-16T22:47:14Z D! [sarama] client/metadata no available broker to send metadata request to
2021-02-16T22:47:14Z D! [sarama] client/brokers resurrecting 1 dead seed brokers
2021-02-16T22:47:14Z D! [sarama] client/metadata retrying after 250ms… (3 attempts remaining)
2021-02-16T22:47:14Z D! [sarama] client/metadata fetching metadata for all topics from broker localhost:9092
2021-02-16T22:47:14Z D! [sarama] Connected to broker at localhost:9092 (unregistered)
2021-02-16T22:47:14Z D! [sarama] client/metadata got error from broker -1 while fetching metadata: read tcp [::1]:48892->[::1]:9092: read: connection reset by peer
2021-02-16T22:47:14Z D! [sarama] Closed connection to broker localhost:9092
2021-02-16T22:47:14Z D! [sarama] client/metadata no available broker to send metadata request to
2021-02-16T22:47:14Z D! [sarama] client/brokers resurrecting 1 dead seed brokers
2021-02-16T22:47:14Z D! [sarama] client/metadata retrying after 250ms… (2 attempts remaining)
2021-02-16T22:47:14Z D! [sarama] client/metadata fetching metadata for all topics from broker localhost:9092
2021-02-16T22:47:14Z D! [sarama] Connected to broker at localhost:9092 (unregistered)
2021-02-16T22:47:14Z D! [sarama] client/metadata got error from broker -1 while fetching metadata: read tcp [::1]:48894->[::1]:9092: read: connection reset by peer
2021-02-16T22:47:14Z D! [sarama] Closed connection to broker localhost:9092
2021-02-16T22:47:14Z D! [sarama] client/metadata no available broker to send metadata request to
2021-02-16T22:47:14Z D! [sarama] client/brokers resurrecting 1 dead seed brokers
2021-02-16T22:47:14Z D! [sarama] client/metadata retrying after 250ms… (1 attempts remaining)
2021-02-16T22:47:15Z D! [sarama] client/metadata fetching metadata for all topics from broker localhost:9092
2021-02-16T22:47:15Z D! [sarama] Connected to broker at localhost:9092 (unregistered)
2021-02-16T22:47:15Z D! [sarama] client/metadata got error from broker -1 while fetching metadata: read tcp [::1]:48896->[::1]:9092: read: connection reset by peer
2021-02-16T22:47:15Z D! [sarama] Closed connection to broker localhost:9092
2021-02-16T22:47:15Z D! [sarama] client/metadata no available broker to send metadata request to
2021-02-16T22:47:15Z D! [sarama] client/brokers resurrecting 1 dead seed brokers
2021-02-16T22:47:15Z D! [sarama] Closing Client
2021-02-16T22:47:15Z E! [telegraf] Error running agent: could not initialize output kafka: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)
Hi,
I think this is a duplicate of Telegraf ..could not initialize output kafka: kafka: client has run out of available brokers to talk to (Is your cluster reachable?) I’ve replied over there