Missing required configuration "bootstrap.servers" which has no default value.
时间: 2024-05-29 16:11:54 浏览: 18
This error message typically occurs when trying to connect to a Kafka cluster without providing the necessary configuration setting for the Kafka bootstrap servers.
The bootstrap.servers configuration setting is used to specify the initial list of brokers that a Kafka client should connect to in order to discover the full set of available brokers in the cluster.
To resolve this error, you need to provide a valid value for the bootstrap.servers setting. This typically involves specifying one or more comma-separated hostnames or IP addresses of the Kafka brokers, along with the port number used for the Kafka protocol (default is 9092).
For example, if you are using the Java Kafka client library, you could set the bootstrap.servers property in your configuration file as follows:
bootstrap.servers=broker1.example.com:9092,broker2.example.com:9092,broker3.example.com:9092
Make sure to replace the example hostnames and port numbers with the actual values for your Kafka cluster.
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)