Error information:
Discovered coordinator DESKTOP-NRTTBDM:9092 (id: 2147483647 rack: null) for group itstyle.
reason:
The host of Kafka running on windows is the machine name, not the IP address
So it will lead to error reporting
Desktop-nrttbdm is the host name of the server where the Kafka instance is located
and 9092 is the port of Kafka, that is, the connection address of Kafka.
Solution
Modify the hosts file directly
The windows hosts file is located in
C:\Windows\System32\drivers\etc\hosts
Open it with administrator’s permission and append the corresponding relationship between IP and host name
Add the
172.18.0.52 DESKTOP-NRTTBDM
Restart the service again
Problem solved!
Read More:
- [Solved] kafka Error: java.net.UnknownHostException: kafkahost
- [Solved] kafka Error: java.net.UnknownHostException: ls-bptysztw
- Mapper.xml Error: Error setting non null for parameter #3 with JdbcType null.
- kafka Environment Build and Startup Error: ERROR [KafkaServer id=1] Fatal error during KafkaServer startup. Prepare to shutdown
- kakfa Create topic Error: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 3 larger than available brokers: 2.
- [Solved] Kafka in Windows error:java. nio. file. Filesystemexception: this file is in use by another program and cannot be accessed by the process
- [Solved] kafka startup Error: ERROR Fatal error during KafkaServer startup. Prepare to shutdown
- [Solved] Kafka Error: is/are not present and missingTopicsFatal is true
- Twitter’s distributed self increasing ID algorithm snowflake (Java version)
- org.hibernate.exception.SQLGrammarException: could not extract ResultSet, Resolve MySQL 5.7.5 or above GROUP_BY is not supported
- [Solved] Spring Kafka Send Error in specifies partition: Topic radar not present in metadata after 60000
- Dubbo failed to register and consumer null pointer exception
- [Solved] Docker Start Error: Error response from daemon: oci runtime error: container with id exists: 7f4336393ab
- Uncaught TypeError: Cannot read property ‘toFixed‘ of null
- Mybatis Error: All elements are null [How to Solve]
- JUnit tests mybatis-plus error: null pointer [How to Solve]
- Not showing null elements JAVA [How to Solve]
- [Solved] Javaweb Error: inStream parameter is null
- mybatis Error: All elements are null [How to Solve]
- NULL value exception occurs when freemarker renders the page globally in the springboot project