I setup 3 node Kafka cluster on my HDFS cluster.
The Processes started successfully.
We while sending the message from Producer to Consumer : getting the below mentioned error
[2020-01-04 08:29:05,942] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 3301 : {my-replicated-topic-1=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
[2020-01-04 08:29:06,051] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 3302 : {my-replicated-topic-1=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
^C[kafka@linux01 kafka]$strong text
[kafka@linux01 kafka]$
[kafka@linux01 kafka]$
Requesting to please help !
COMMANDS USED
^C[kafka@linux01 kafka]$ bin/kafka-topics.sh --create --zookeeper localhost:2181/kafka --replication-factor 3 --partitions 1 --topic my-replicated-topic-1
[2020-01-04 05:27:15,875] WARN Connected to an old server; r-o mode will be unavailable (org.apache.zookeeper.ClientCnxnSocket)
Created topic “my-replicated-topic”.
[kafka@linux01 kafka]$
[kafka@linux01 kafka]$ bin/kafka-topics.sh --describe --zookeeper localhost:2181/kafka --topic my-replicated-topic-1
[2020-01-04 05:28:45,880] WARN Connected to an old server; r-o mode will be unavailable (org.apache.zookeeper.ClientCnxnSocket)
Topic:my-replicated-topic PartitionCount:1 ReplicationFactor:3 Configs:
Topic: my-replicated-topic Partition: 0 Leader: none Replicas: 2,3,1 Isr:
[kafka@linux01 kafka]$
[kafka@linux01 kafka]$
Error while executing the below mentioned Commands
bin/kafka-console-producer.sh --broker-list localhost:9092,localhost:9093,localhost:9094 --topic my-replicated-topic-1
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --topic my-replicated-topic-1 --from-beginning