zookeeper出现Will not attempt to authenticate using SASL (unknown error) 快速解决方法
/project-exam/zookeeper/zookeeper-release-3.5.4/bin zkCli.sh/usr/bin/javaConnecting to localhost:21812020-06-06 18:43:09,516 [myid:] - INFO[main:Environment@109] - Client environment:zookeeper.ver
·
/project-exam/zookeeper/zookeeper-release-3.5.4/bin zkCli.sh
/usr/bin/java
Connecting to localhost:2181
2020-06-06 18:43:09,516 [myid:] - INFO [main:Environment@109] - Client environment:zookeeper.version=3.5.4-beta--1, built on 02/18/2020 10:01 GMT
2020-06-06 18:43:09,519 [myid:] - INFO [main:Environment@109] - Client environment:host.name=10.0.76.110
2020-06-06 18:43:09,519 [myid:] - INFO [main:Environment@109] - Client environment:java.version=1.8.0_161
2020-06-06 18:43:09,521 [myid:] - INFO [main:Environment@109] - Client environment:java.vendor=Oracle Corporation
2020-06-06 18:43:09,521 [myid:] - INFO [main:Environment@109] - Client environment:java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre
2020-06-06 18:43:09,522 [myid:] - INFO [main:Environment@109] - Client environment:java.class.path=/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/classes:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/slf4j-log4j12-1.7.25.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/slf4j-api-1.7.25.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/netty-3.10.6.Final.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/log4j-1.2.17.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/jline-2.11.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/jetty-util-9.2.18.v20160721.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/jetty-servlet-9.2.18.v20160721.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/jetty-server-9.2.18.v20160721.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/jetty-security-9.2.18.v20160721.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/jetty-io-9.2.18.v20160721.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/jetty-http-9.2.18.v20160721.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/javax.servlet-api-3.1.0.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/jackson-mapper-asl-1.9.11.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/jackson-core-asl-1.9.11.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/commons-cli-1.2.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../build/lib/audience-annotations-0.5.0.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../lib/*.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../zookeeper-*.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../src/java/lib/ivy-2.4.0.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../src/java/lib/ant-eclipse-1.0-jvm1.2.jar:/project-exam/zookeeper/zookeeper-release-3.5.4/bin/../conf:
2020-06-06 18:43:09,532 [myid:] - INFO [main:Environment@109] - Client environment:java.library.path=/Users/zhanghaiyan5/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
2020-06-06 18:43:09,532 [myid:] - INFO [main:Environment@109] - Client environment:java.io.tmpdir=/var/folders/sq/xdr29xr52k73d4ghxrk2wq496znq09/T/
2020-06-06 18:43:09,532 [myid:] - INFO [main:Environment@109] - Client environment:java.compiler=<NA>
2020-06-06 18:43:09,532 [myid:] - INFO [main:Environment@109] - Client environment:os.name=Mac OS X
2020-06-06 18:43:09,532 [myid:] - INFO [main:Environment@109] - Client environment:os.arch=x86_64
2020-06-06 18:43:09,532 [myid:] - INFO [main:Environment@109] - Client environment:os.version=10.14.2
2020-06-06 18:43:09,532 [myid:] - INFO [main:Environment@109] - Client environment:user.name=zhanghaiyan5
2020-06-06 18:43:09,533 [myid:] - INFO [main:Environment@109] - Client environment:user.home=/Users/zhanghaiyan5
2020-06-06 18:43:09,533 [myid:] - INFO [main:Environment@109] - Client environment:user.dir=/project-exam/zookeeper/zookeeper-release-3.5.4/bin
2020-06-06 18:43:09,533 [myid:] - INFO [main:Environment@109] - Client environment:os.memory.free=239MB
2020-06-06 18:43:09,535 [myid:] - INFO [main:Environment@109] - Client environment:os.memory.max=245MB
2020-06-06 18:43:09,535 [myid:] - INFO [main:Environment@109] - Client environment:os.memory.total=245MB
2020-06-06 18:43:09,545 [myid:] - INFO [main:ZooKeeper@868] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@506c589e
2020-06-06 18:43:09,558 [myid:] - INFO [main:ClientCnxnSocket@236] - jute.maxbuffer value is 4194304 Bytes
Welcome to ZooKeeper!
2020-06-06 18:43:09,572 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1106] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2020-06-06 18:43:09,672 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1235] - Socket error occurred: localhost/127.0.0.1:2181: Connection refused
[zk: localhost:2181(CONNECTING) 0] 2020-06-06 18:43:10,780 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1106] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2020-06-06 18:43:10,782 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1235] - Socket error occurred: localhost/127.0.0.1:2181: Connection refused
2020-06-06 18:43:11,889 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1106] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2020-06-06 18:43:11,890 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1235] - Socket error occurred: localhost/127.0.0.1:2181: Connection refused
原因是没有正确启动,请按下面的步骤:
https://www.cnblogs.com/kyleinjava/p/9431491.html
检查./zkServer.sh status
启动./zkServer.sh start
启动成功 ./zkServer.sh status
更多推荐
已为社区贡献1条内容
所有评论(0)