在第二台机器上启动kafka服务器的时候报错

t@1e81a197 (org.apache.zookeeper.ZooKeeper)
[2015-12-25 23:21:07,856] INFO Opening socket connection to server core/127.0.0.1:2181. Will not attempt to authenticate using SASL (java.lang.SecurityException: Unable to locate a login configuration) (org.apache.zookeeper.ClientCnxn)
[2015-12-25 23:21:07,862] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
[2015-12-25 23:21:08,971] INFO Opening socket connection to server core/127.0.0.1:2181. Will not attempt to authenticate using SASL (java.lang.SecurityException: Unable to locate a login configuration) (org.apache.zookeeper.ClientCnxn)
[2015-12-25 23:21:08,971] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
[2015-12-25 23:21:10,072] INFO Opening socket connection to server core/127.0.0.1:2181. Will not attempt to authenticate using SASL (java.lang.SecurityException: Unable to locate a login configuration) (org.apache.zookeeper.ClientCnxn)
[2015-12-25 23:21:10,073] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
^Z
[6]+ Stopped bin/kafka-server-start.sh config/server.properties
[root@SY-002 kafka]#
这个我还需要在哪里配制吗

fish - Hadooper

赞同来自:

如果broker与zookeeper在不同机器上执行,通过127.0.0.1就无法进行通信,异常中报了无法连接到127.0.0.1,你的kafka的配置中,zookeeper的地址配置成了什么呢?

于宝柱

赞同来自:

您好 我想请教一下这个问题解决了吗  我也遇到了同样的问题 但是我并没有楼主异常中有127.0.0.1的那段异常,不知道有没有别的解决方法呢  

要回复问题请先登录注册