- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
WARN [Producer clientId=console-producer] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
- Labels:
-
Apache Kafka
Created 03-25-2019 11:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
WARN [Producer clientId=console-producer] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
When I try to ping from producer command , I'm getting the above error.
Kafka 1.0.1 and Zookeeper are running mode only
Created 06-26-2019 12:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Go to ambari >> kafka >> configs type "listeners" in the filter, check for the port number given there
listeners = PLAINTEXT://localhost:6667 . use the port number mentioned here for consumer-producer and try again.
Created 09-10-2019 05:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting similar warning log when my consumer when broker is down.
is there a way my consumer code get notify when all brokers are down? and when broker are back?
