accumulo init无法连接到zookeeper

qlzsbp2j  于 2021-06-03  发布在  Hadoop
关注(0)|答案(0)|浏览(207)

当我用命令accumulo init初始化accumulo时,出现错误,无法连接到zookeeper,但是zookeeper正在运行:info:zookeeper is localhost:2181

Thread "init" died null
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.accumulo.start.Main$1.run(Main.java:101)
    at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Failed to connect to zookeeper (localhost:2181) within 2x zookeeper timeout period 30000
    at org.apache.accumulo.server.util.Initialize.main(Initialize.java:498)
    ... 6 more
Caused by: java.lang.RuntimeException: Failed to connect to zookeeper (localhost:2181) 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.ZooReaderWriter.getZooKeeper(ZooReaderWriter.java:53)
    at org.apache.accumulo.fate.zookeeper.ZooReader.exists(ZooReader.java:70)
    at `enter code here`org.apache.accumulo.server.util.Initialize.zookeeperAvailable(Initialize.java:197)
    at org.apache.accumulo.server.util.Initialize.doInit(Initialize.java:122)
    at org.apache.accumulo.server.util.Initialize.main(Initialize.java:494)
    ... 6 more

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题