Help Center/
MapReduce Service/
User Guide (Ankara Region)/
Troubleshooting/
Using Kafka/
An Error Is Reported When Kafka Is Run to Obtain a Topic
Updated on 2024-11-29 GMT+08:00
An Error Is Reported When Kafka Is Run to Obtain a Topic
Issue
An Error is reported when Kafka is run to obtain a topic.
Symptom
An error is reported when the Kafka is run to obtain topics. The error information is as follows:
ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 2 larger than available brokers: 0.
Possible Cause
The variable for obtaining the ZooKeeper address is incorrect due to special characters.
Procedure
- Log in to any Master node.
- Run the cat /opt/client/Kafka/kafka/config/server.properties |grep '^zookeeper.connect =' command to check the variable of the Zookeeper address.
- Run Kafka again to obtain the topic. Do not add any character to the variables obtained in 2.
Parent topic: Using Kafka
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot