gpt4 book ai didi

apache - zookeeper无法打开localhost/0的套接字:0:0:0:0:0:0:1:2181

转载 作者:行者123 更新时间:2023-12-04 11:23:23 25 4
gpt4 key购买 nike

我正在将Zookeeper集成用于hbase。 Zookeeper正在3台计算机上运行。而HBase也处于完全分布式模式。我有Nutch 2.x版本。当我开始获取一些数据时,它会在日志日志文件中显示以下错误。

ERROR zookeeper.ClientCnxnSocketNIO - Unable to open socket to localhost/0:0:0:0:0:0:0:1:2181
2015-01-23 16:34:21,956 WARN zookeeper.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.SocketException: Network is unreachable
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:457)
at sun.nio.ch.Net.connect(Net.java:449)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:647)
at org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:266)
at org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:276)
at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:958)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:993)
2015-01-23 16:34:22,063 WARN zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid

当我在三个Zookeeper实例上运行命令时
echo ruok | nc 1.1.1.1 2181 it says imok

怎么了我的hbase版本是0.94.14,Zookeeper版本是3.4.5,solr版本4.10.3(用于索引)和Nutch版本是2.2.3。

最佳答案

(CentOS)检查您的/etc/hosts文件,以及是否包含

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
之类的文件
将其更改为
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 ip6-localhost ip6-localhost.localdomain localhost6 localhost6.localdomain6

关于apache - zookeeper无法打开localhost/0的套接字:0:0:0:0:0:0:1:2181,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28109669/

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