java.lang.RuntimeException: java.lang.RuntimeException: Failed to connect to zookeeper (localhost:2181) within 2x zookeeper timeout period 30000

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via accumulo-dev by Amila Wijayarathna, 1 year ago
java.lang.RuntimeException: Failed to connect to zookeeper (localhost:2181) within 2x zookeeper timeout period 30000
java.lang.RuntimeException: 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:123)
at org.apache.accumulo.fate.zookeeper.ZooSession.getSession(ZooSession.java:167)
at org.apache.accumulo.fate.zookeeper.ZooReader.getSession(ZooReader.java:39)
at org.apache.accumulo.fate.zookeeper.ZooReaderWriter.getZooKeeper(ZooReaderWriter.java:50)
at org.apache.accumulo.fate.zookeeper.ZooReader.exists(ZooReader.java:166)
at org.apache.accumulo.server.init.Initialize.zookeeperAvailable(Initialize.java:277)
at org.apache.accumulo.server.init.Initialize.checkInit(Initialize.java:159)
at org.apache.accumulo.server.init.Initialize.doInit(Initialize.java:213)
at org.apache.accumulo.server.init.Initialize.main(Initialize.java:590)
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:606)
at org.apache.accumulo.start.Main$1.run(Main.java:141)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.