After updating the code, the package succeeds, but an error is reported when the project is started. The error information is shown in the following figure:
I mean, it is obvious that the problem lies in Kafka. After looking at the configuration, it should be the port problem.
Instead of using IP configuration, I directly configured the port name in the host file, as shown in the following figure:
Add configuration 127.0.0.1 Kafka-server
Then change the service address of Kafka to kafka-server:9092
in the application configuration file of the project
Read More:
- [Solved] kafka Startup Error: ERROR Shutdown broker because all log dirs in /…/kafka/logs have failed (kafka.log.LogManager)
- [Solved] Kafka Error: kafka.common.InconsistentClusterIdException…
- Kafka executes the script to create topic error: error org apache. kafka. common. errors. InvalidReplicationFactorException: Replicati
- Kafka error: ERROR There was an error in one of the threads during logs loading: java.lang.NumberFormatException: For input string: “derby” (kafka.log.LogManager)
- How to Solve Kafka Error: no leader
- [Solved] Kafka2.3.0 Error: Timeout of 60000ms expired before the position for partition could be determined
- [Solved] Kafka Error: InvalidReplicationFactorException: Replication factor:
- [Solved] kafka startup Error: java.net.ConnectException: Connection refused
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- How to Solve canal & MYSQL or “Kafka cannot consume data” Error
- Kafka Creates and Writes Logs Error [How to Solve]
- Kafka Error while fetching metadata with correlation id 1 : {alarmHis=LEADER_NOT_AVAILABLE}
- Mac M1 Start Virtual Machine Centos8 with PD to install Kafka error: Error: VM option ‘UseG1GC‘
- kafka Error: Error while fetching metadata with correlation
- Huawei kafka Authentication error: Server not found in Kerberos database (7) – LOOKING_UP_SERVER
- Kafka configurate broker mapping error: discovered coordinator XXX rack: null
- [Solved] Kafka Restarts error | Cloudera Manager Access Returns 500 | HDFS Startup Error
- [Solved] kafka Startup Error: Fatal error during KafkaServer startup
- How to Solve 0xc1900101 Error (Win10 upgrade Win11)
- Android Error: Consumer closed input channel or an error occurred. events=0x9