kafka-ui: AdminClient : could not be established. Broker may not be available

I installed the lastest version or kafku-ui

helm -n dev install kafka-ui .

this this values.yaml

  envs:
    config:
      KAFKA_CLUSTERS_0_NAME: local
      KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka-cp-kafka:9092
      KAFKA_CLUSTERS_0_ZOOKEEPER: kafka-cp-zookeeper:2181
      KAFKA_CLUSTERS_0_SCHEMAREGISTRY: http://kafka-cp-schema-registry:8081
      KAFKA_CLUSTERS_0_KAFKACONNECT_0_ADDRESS: http://kafka-cp-kafka-connect:8083

here are the Kafka service names and ports

kafka-cp-control-center                     ClusterIP      10.104.44.246    <none>        9021/TCP                              52m
kafka-cp-kafka                              ClusterIP      10.99.171.71     <none>        9092/TCP,5556/TCP                     52m
kafka-cp-kafka-connect                      ClusterIP      10.100.156.178   <none>        8083/TCP,5556/TCP                     52m
kafka-cp-kafka-headless                     ClusterIP      None             <none>        9092/TCP                              52m
kafka-cp-kafka-rest                         ClusterIP      10.107.4.6       <none>        8082/TCP,5556/TCP                     52m
kafka-cp-ksql-server                        ClusterIP      10.103.213.138   <none>        8088/TCP,5556/TCP                     52m
kafka-cp-schema-registry                    ClusterIP      10.101.214.209   <none>        8081/TCP,5556/TCP                     52m
kafka-cp-zookeeper                          ClusterIP      10.104.28.65     <none>        2181/TCP,5556/TCP                     52m
kafka-cp-zookeeper-headless                 ClusterIP      None             <none>        2888/TCP,3888/TCP                     52m

I have those error in loop in my logs

19:32:22.438 [kafka-admin-client-thread | adminclient-3] WARN  org.apache.kafka.clients.NetworkClient - [AdminClient clientId=adminclient-3] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
19:32:22.654 [kafka-admin-client-thread | adminclient-1] WARN  org.apache.kafka.clients.NetworkClient - [AdminClient clientId=adminclient-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
root@test-pcl4004:~#

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (15 by maintainers)

Most upvoted comments

thanks… it was a stupid copy/paste error. Thank you for your time

sorry, I was busy lately. Tomorrow, I’ll have time to give you more details.

@Haarolean could you please try to reproduce this