DevOps | Cloud | Analytics | Open Source | Programming





How To Fix - "No Resolvable Bootstrap Urls" Error in Kafka ?



In this post, we will see How To Fix - "No Resolvable Bootstrap Urls" Error in Kafka.


Caused by: kafkashaded.org.apache.kafka.common.config.ConfigException: No resolvable bootstrap urls given in bootstrap.servers<!-- more -->


While using Kafka, you might observe the above error. It might ultimately result into the below error -


kafkashaded.org.apache.kafka.common.KafkaException: Failed to construct kafka consumer

Before you start checking or debugging the issue, collect all the Kafka Brokers details - IP Address, Hostname etc and keep them handy.  

Check 1 :

  • First thing first - if you look at the error details, it says "No resolvable bootstrap urls given in bootstrap.servers". So it is a good idea to cross-check the bootstrap.servers values. Make sure the IP address defined in the bootstrap.servers is correct, accessible and running.

"bootstrap.servers", "<Ip\_Address>:9092"

  • Check bootstrap.servers value set in the the consumer.properties file as well. It should be same as in the previous. (Just FYI..consumer.properties and producer.properties files are used for configuring a consumer or producer application).

kafka-console-consumer.sh --consumer.config ~/kafka/consumer.properties --topic TEST

 

Check 2 :

  • Check the advertised.listeners details in config/server.properties file.
  • Note that bootstrap.servers is used for the initial connection to the Kafka cluster. However after the initial connection is done, Kafka will return advertised.listeners info which is a list of IP_Addresses that can be used to connect to the Kafka Brokers. Hence it is very crucial that the correct details is set in the advertised.listeners based on the Kafka Cluster config.
  • The clients use the advertised.listeners details to connect to the Kafka Brokers subsequently.
  • Make sure you are using the right IP_Address details in the advertised.listeners field.
  • In many cases, external IP should be used as the right IP_Address.

advertised.listeners=PLAINTEXT://<IP\_Address>:9092

 

Check 3 :

  • If you are using Kafka in a Spark cluster, then all the worker nodes should be aware of the Kafka Brokers information.
  • Update the Kafka Broker details (IP address\Hostname) in the /etc/hosts file in the worker nodes, edge node, driver node, master node as applicable in your cluster configuration.
 

Check 4 :

  • If you are using or connecting Kafka from some other External Service or system which has it's own defined properties as part of the connector config, then make sure to identify the exact property that caters to define the Kafka Brokers.
  • And subsequently use the Kafka Broker bootstrap.servers\advertised.listeners details in those fields as well.
  • In case of Docker, check the docker-compose.yml  file. And cross-check the set name or value for "container_name" and Bootstrap_servers_config fields.
  Hope this helps to solve the error.  

Other Interesting Reads -

  How To Fix - "No Resolvable Bootstrap Urls" Error in Kafka ?  


no resolvable bootstrap urls given in bootstrap.servers ,no resolvable bootstrap urls given in bootstrap.servers docker ,no resolvable bootstrap urls ,no resolvable bootstrap urls given in bootstrap.servers kubernetes ,no resolvable bootstrap urls given in bootstrap.servers localhost ,no resolvable bootstrap urls given in bootstrap.servers kafdrop ,kafka bootstrap servers ,couldn't resolve server kafka:9092 from bootstrap.servers as dns resolution failed for kafka ,bootstrap url kafka ,org apache kafka common config configexception invalid url in bootstrap servers 9092 ,invalid url in bootstrap-servers: $(spring embedded kafka brokers) ,org.apache.kafka.common.kafkaexception: failed to construct kafka producer ,metadata broker-list vs bootstrap servers ,No Resolvable Bootstrap Urls Kafka ,kafka no resolvable bootstrap urls ,kafka no resolvable bootstrap urls given in ,no resolvable bootstrap urls given in bootstrap.servers kafka consumer ,no resolvable bootstrap urls given in bootstrap.servers kafka producer ,spring kafka no resolvable bootstrap urls given in bootstrap.servers ,embedded kafka no resolvable bootstrap urls given in bootstrap.servers ,docker kafka no resolvable bootstrap urls given in bootstrap.servers ,spring boot kafka no resolvable bootstrap urls given in bootstrap.servers ,no resolvable bootstrap urls given in bootstrap.servers kafka ,kafka connect no resolvable bootstrap urls given in bootstrap.servers ,kafka no resolvable bootstrap urls given in bootstrap.servers ,kafka consumer no resolvable bootstrap urls given in bootstrap.servers ,kafka producer no resolvable bootstrap urls given in bootstrap.servers ,kafka.common.config.configexception no resolvable bootstrap urls given in bootstrap.servers ,org.apache.kafka.common.config.configexception no resolvable bootstrap urls ,no resolvable bootstrap urls given in bootstrap.servers docker ,no resolvable bootstrap urls given in bootstrap.servers spring boot ,failed to construct kafka consumer no resolvable bootstrap urls given in bootstrap.servers ,failed to construct kafka producer no resolvable bootstrap urls given in bootstrap.servers , ,no resolvable bootstrap urls given ,no resolvable bootstrap urls given in bootstrap.servers ,no resolvable bootstrap urls given in bootstrap.servers docker ,no resolvable bootstrap urls given in bootstrap.servers kubernetes ,no resolvable bootstrap urls given in bootstrap.servers localhost ,no resolvable bootstrap urls given ,kafka no resolvable bootstrap urls given in ,no resolvable bootstrap urls given in bootstrap.servers test ,no resolvable bootstrap urls given in bootstrap.servers datastage ,ksqldb no resolvable bootstrap urls given in bootstrap.servers ,ibm no resolvable bootstrap urls given in bootstrap.servers , , ,docker kafka no resolvable bootstrap urls given in bootstrap.servers ,embedded kafka no resolvable bootstrap urls given in bootstrap.servers ,failed to construct kafka consumer no resolvable bootstrap urls given in bootstrap.servers ,failed to construct kafka producer no resolvable bootstrap urls given in bootstrap.servers ,kafka connect no resolvable bootstrap urls given in bootstrap.servers ,kafka no resolvable bootstrap urls ,kafka no resolvable bootstrap urls given in ,kafka no resolvable bootstrap urls given in bootstrap.servers ,kafka.common.config.configexception no resolvable bootstrap urls given in bootstrap.servers ,no resolvable bootstrap urls given in bootstrap.servers kafka ,no resolvable bootstrap urls given in bootstrap.servers kafka consumer ,no resolvable bootstrap urls given in bootstrap.servers kafka producer ,no resolvable bootstrap urls kafka api ,no resolvable bootstrap urls kafka authentication ,no resolvable bootstrap urls kafka field ,no resolvable bootstrap urls kafka file ,no resolvable bootstrap urls kafka form ,no resolvable bootstrap urls kafka format ,no resolvable bootstrap urls kafka framework ,no resolvable bootstrap urls kafka head ,no resolvable bootstrap urls kafka header ,no resolvable bootstrap urls kafka heap ,no resolvable bootstrap urls kafka java ,no resolvable bootstrap urls kafka job ,no resolvable bootstrap urls kafka join ,no resolvable bootstrap urls kafka juniper ,no resolvable bootstrap urls kafka key ,no resolvable bootstrap urls kafka kit ,no resolvable bootstrap urls kafka kubernetes ,no resolvable bootstrap urls kafka library ,no resolvable bootstrap urls kafka list ,no resolvable bootstrap urls kafka logs ,no resolvable bootstrap urls kafka material ,no resolvable bootstrap urls kafka message ,no resolvable bootstrap urls kafka method ,no resolvable bootstrap urls kafka model ,no resolvable bootstrap urls kafka node ,no resolvable bootstrap urls kafka not working ,no resolvable bootstrap urls kafka notes ,no resolvable bootstrap urls kafka object ,no resolvable bootstrap urls kafka one ,no resolvable bootstrap urls kafka option ,no resolvable bootstrap urls kafka query ,no resolvable bootstrap urls kafka questions ,no resolvable bootstrap urls kafka request ,no resolvable bootstrap urls kafka response ,no resolvable bootstrap urls kafka table ,no resolvable bootstrap urls kafka template ,no resolvable bootstrap urls kafka tools ,no resolvable bootstrap urls kafka topic ,no resolvable bootstrap urls kafka tutorial ,no resolvable bootstrap urls kafka ui ,no resolvable bootstrap urls kafka v3 ,no resolvable bootstrap urls kafka validation ,no resolvable bootstrap urls kafka version ,no resolvable bootstrap urls kafka view ,no resolvable bootstrap urls kafka workspace ,no resolvable bootstrap urls kafka yaml ,no resolvable bootstrap urls kafka yes ,no resolvable bootstrap urls kafka youtube ,no resolvable bootstrap urls kafka zendesk ,no resolvable bootstrap urls kafka zip ,no resolvable bootstrap urls kafka zone ,no resolvable bootstrap urls kafka zookeeper ,no resolvable bootstrap urls kafka zoom ,org.apache.kafka.common.config.configexception no resolvable bootstrap urls ,spring boot kafka no resolvable bootstrap urls given in bootstrap.servers ,spring kafka no resolvable bootstrap urls given in bootstrap.servers ,caused by org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,databricks kafka shaded.org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,druid org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,error html error org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,error org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,exception in thread main org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,flink org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,is org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,java.lang.runtimeexception org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,kafka error message=org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,kafka shaded.org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,nested exception is org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,nifi org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,org.apache.kafka.common.kafkaexception failed to construct kafka consumer streamsets ,spark org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,streamsets org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,org.apache.kafka.common.KafkaException: Failed to construct kafka consumer ,org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,org.apache.kafka.common.kafkaexception failed to construct kafka consumer streamsets ,nifi org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,spark org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,druid org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,databricks kafka shaded.org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,java.lang.runtimeexception org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,flink org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,caused by org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,error org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,kafka error message=org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,error html error org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,is org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,kafka shaded.org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,exception in thread main org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,nested exception is org.apache.kafka.common.kafkaexception failed to construct kafka consumer ,