gpt4 book ai didi

solr - 不尝试使用 SASL 进行身份验证(未知错误)

转载 作者:行者123 更新时间:2023-12-04 12:30:58 27 4
gpt4 key购买 nike

我正在尝试在 ec2 两个实例上设置 zookeeper。如给定 herehere .
我正在尝试运行因错误而失败的 zookeeper:
命令:bin/zkCli.sh -server localhost:2181

> 2015-03-15 00:22:35,644 [myid:] - INFO  [main:ZooKeeper@438] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@3ff0efca
Welcome to ZooKeeper!
2015-03-15 00:22:35,671 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@975] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2015-03-15 00:22:35,677 [myid:] - WARN [main-SendThread(localhost:2181):ClientCnxn$SendThread@1102] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
[zk: localhost:2181(CONNECTING) 0] 2015-03-15 00:22:36,796 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@975] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2015-03-15 00:22:36,797 [myid:] - WARN [main-SendThread(localhost:2181):ClientCnxn$SendThread@1102] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

zoo.cfg 如下
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/var/lib/zookeeper
clientPort=2181
server.1=localhost:2888:3888
server.2=<My ec2 private IPs>:2889:3889

我还在两个 ec2 实例上创建了 myId 文件 - /var/lib/zookeeper/myid
我也尝试编辑/ect/hosts 文件,但仍然面临同样的问题。
还有我如何通过1个命令启动两个zookeeper实例?

注意:如果我尝试使用 bin/zkCli.sh start,服务器将成功启动命令。

提前致谢!

最佳答案

查看zk日志zookeeper.out,如果有连接限制错误,在zoo.cfg中配置如下。

# the maximum number of client connections.
# increase this if you need to handle more clients
maxClientCnxns=60

关于solr - 不尝试使用 SASL 进行身份验证(未知错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29056195/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com