Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

WARN [Producer clientId=console-producer] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

Highlighted

WARN [Producer clientId=console-producer] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

New Contributor

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

2 REPLIES 2

Re: WARN [Producer clientId=console-producer] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

New Contributor

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.

Re: WARN [Producer clientId=console-producer] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)

New Contributor

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?

 

 

Don't have an account?
Coming from Hortonworks? Activate your account here