Skip to content

Instantly share code, notes, and snippets.

@umaimehm
umaimehm / gist:fc4b9926031886e2379803f3859dcb76
Created October 12, 2018 08:01
Common Kafka Issues on Ambari
Common Issues with Ambari Installation
While running, kafka producer,
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
I received this error :
WARN [Producer clientId=console-producer] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
This error comes because there is a misconfigurtion between your system hostname and ambari installation.
Make sure that the hostname used everywhere in kafka, zookeeper, /ect/hosts should be the same.
Here is the hostname configuration in all files for me :
Get Bash into a Docker
docker exec -it (container name) /bin/bash
Check Logs:
go to log folder in each container
Execute a command in docker
docker exec -it (container name)
Pause all containers