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] Kafka2.3.0 Error: Timeout of 60000ms expired before the position for partition could be determined
- [Solved] kafka startup Error: java.net.ConnectException: Connection refused
- kafka Error: Error while fetching metadata with correlation
- [Solved] Kafka Error: InvalidReplicationFactorException: Replication factor:
- Kafka executes the script to create topic error: error org apache. kafka. common. errors. InvalidReplicationFactorException: Replicati
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- 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)
- Mac M1 Start Virtual Machine Centos8 with PD to install Kafka error: Error: VM option ‘UseG1GC‘
- How to Solve Kafka Error: no leader
- Kafka Error while fetching metadata with correlation id 1 : {alarmHis=LEADER_NOT_AVAILABLE}
- How to Solve canal & MYSQL or “Kafka cannot consume data” Error
- Kafka Creates and Writes Logs Error [How to Solve]
- RabbitMQ:address (cannot connect to host/port) [How to Solve]
- Error in node when PM2 starts multiple processes in docker
- [Solved] kafka Startup Error: Fatal error during KafkaServer startup
- [Solved] CXF Call webservice Client Error: 2 counts of InaccessibleWSDLException
- [Solved] Vscode Connect to the remote server error: permission denied (public key)
- How to Fix TNS 12560 Error
- Huawei kafka Authentication error: Server not found in Kerberos database (7) – LOOKING_UP_SERVER
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException