gpt4 book ai didi

java - Accumulo - MiniAccumuloCluster 连接被拒绝

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

我正在使用 MiniAccumuloCluster (MAC) 1.5 jar,甚至尝试实例化 MAC 对象,但似乎无法连接到它。我收到大量类似于以下内容的错误:

13/07/08 14:31:29 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:14060
13/07/08 14:31:29 WARN zookeeper.ClientCnxn: 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:692)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1143)

并以以下错误结束:

Exception in thread "main" java.lang.RuntimeException: Failed to connect to zookeeper (localhost:14060) within 2x zookeeper timeout period 30000
at org.apache.accumulo.fate.zookeeper.ZooSession.connect(ZooSession.java:96)
at org.apache.accumulo.fate.zookeeper.ZooSession.getSession(ZooSession.java:146)
at org.apache.accumulo.fate.zookeeper.ZooReader.getSession(ZooReader.java:36)
at org.apache.accumulo.fate.zookeeper.ZooReader.getZooKeeper(ZooReader.java:40)
at org.apache.accumulo.fate.zookeeper.ZooCache.getZooKeeper(ZooCache.java:56)
at org.apache.accumulo.fate.zookeeper.ZooCache.retry(ZooCache.java:127)
at org.apache.accumulo.fate.zookeeper.ZooCache.get(ZooCache.java:233)
at org.apache.accumulo.fate.zookeeper.ZooCache.get(ZooCache.java:188)
at org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceID(ZooKeeperInstance.java:143)
at org.apache.accumulo.core.client.ZooKeeperInstance.<init>(ZooKeeperInstance.java:104)
at org.apache.accumulo.core.client.ZooKeeperInstance.<init>(ZooKeeperInstance.java:85)
at Accumulo.Accumulo.connectToMiniCluster(Accumulo.java:454)
at Accumulo.Accumulo.<init>(Accumulo.java:140)
at Accumulo.FrontEnd.main(FrontEnd.java:56)

Accumulo.Accumulo.connectoToMiniCluster(第 454 行)是:

Instance inst = new ZooKeeperInstance(mac.getInstanceName(), mac.getZooKeepers());

有什么建议吗?互联网上严重缺乏许多 Accumulo 框架(包括 MAC)的文档。

最佳答案

在尝试实例化 ZooKeeperInstance 之前,您是否启动了 MiniAccumuloCluster 实例?

确保调用 mac.start()。

关于java - Accumulo - MiniAccumuloCluster 连接被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17535673/

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