Running the Producer.java Sample to Obtain Metadata Fails and "ERROR fetching topic metadata for topics..." Is Displayed, Even the Access Permission for the Related Topic
Troubleshooting Procedure
- Find bootstrap.servers in producer.properties under the conf directory of the project, and check whether the IP address and port ID are configured correctly.
- If the IP address is inconsistent with the service IP address of the Kafka cluster, change the IP address to the correct one.
- If the port ID is 21007 (security mode port), change it to 9092 (normal mode port).
- Check whether network connections are correct to ensure that the current device can access the Kafka cluster normally.
Last Article: FAQ
Next Article: Kudu Development Guide (Security Mode)
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.