WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn) java.net.ConnectException: Connection refused
1、启动kafka的脚本程序报如下所示的错误:
1 [hadoop@slaver1 script_hadoop]$ kafka-start.sh 2 start kafkaServer... 3 [2018-05-22 09:29:08,783] INFO Verifying properties (kafka.utils.VerifiableProperties) 4 [2018-05-22 09:29:08,942] INFO Property broker.id is overridden to 1 (kafka.utils.VerifiableProperties) 5 [2018-05-22 09:29:08,943] INFO Property log.cleaner.enable is overridden to false (kafka.utils.VerifiableProperties) 6 [2018-05-22 09:29:08,945] INFO Property log.dirs is overridden to /tmp/kafka-logs (kafka.utils.VerifiableProperties) 7 [2018-05-22 09:29:08,946] INFO Property log.retention.check.interval.ms is overridden to 60000 (kafka.utils.VerifiableProperties) 8 [2018-05-22 09:29:08,946] INFO Property log.retention.hours is overridden to 168 (kafka.utils.VerifiableProperties) 9 [2018-05-22 09:29:08,947] INFO Property log.segment.bytes is overridden to 536870912 (kafka.utils.VerifiableProperties) 10 [2018-05-22 09:29:08,947] INFO Property num.io.threads is overridden to 8 (kafka.utils.VerifiableProperties) 11 [2018-05-22 09:29:08,949] INFO Property num.network.threads is overridden to 2 (kafka.utils.VerifiableProperties) 12 [2018-05-22 09:29