0. Installation reference
Note that the new version of Kafka does not need to install zookeeper separately. You can directly use the self-contained one. Of course, you can also install it separately
1. Error message
Kafka startup error: java.net.ConnectException: Connection refused
2. Cause of error
Zookeeper was not started before Kafka was started
3. Solution
Start zookeeper first and then Kafka again
4. Start command
4.1 to Kafka installation directory
cd /usr/src/kafka_2.12-3.1.0/
4.2 start zookeeper (the latest version of the zookeeper from Kafka is used here)
bin/zookeeper-server-start.sh config/zookeeper.properties
4.3 start Kafka
bin/kafka-server-start.sh config/server.properties
4.4 close Kafka
bin/kafka-server-stop.sh config/server.properties
Read More:
- Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: [How to Solve]
- [Solved] AmqpConnectException: java.net.ConnectException: Connection refused: connect
- [Solved] SpringBoot integration with Redis error: java.net.ConnectException: Connection refused: no further information
- [Solved] “error_code“:500,“message“:“IO Error trying to forward REST request: java.net.ConnectException: Connection Refused
- [Solved] Error running query: MetaException(message:Got exception: java.net.ConnectException Call From XXXX
- [Solved] kafka Startup Error: ERROR Shutdown broker because all log dirs in /…/kafka/logs have failed (kafka.log.LogManager)
- [Solved] failed to req API:localhost:8848/nacos/v1/ns/instance. code:500 msg: java.net.ConnectException
- 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)
- [Solved] Kafka Error: kafka.common.InconsistentClusterIdException…
- [Solved] kafka Startup Error: Fatal error during KafkaServer startup
- [Solved] Win 10 Kafka error: failed to construct Kafka consumer
- Kafka executes the script to create topic error: error org apache. kafka. common. errors. InvalidReplicationFactorException: Replicati
- [SpringBoot] Maven Error: Connection refused to host: 127.0.0.1
- [Solved] Kafka Error: InvalidReplicationFactorException: Replication factor:
- [Solved] Kafka Restarts error | Cloudera Manager Access Returns 500 | HDFS Startup Error
- Caused by: java.net.SocketException: Software caused connection abort: socket write error
- [Solved] AndroidStudio Error: Connect to 127.0.0.1:10887 [/127.0.0.1] failed: Connection refused…
- [Solved] Ubuntu 20.04 LTS Install k8s Error: The connection to the server localhost:8080 was refused
- kafka Error: Error while fetching metadata with correlation
- zabbix-Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused