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

accumulo-dev | Amila Wijayarathna | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re: Accumulo not initializing

    accumulo-dev | 9 months ago | Amila Wijayarathna
    java.lang.RuntimeException: java.lang.RuntimeException: Failed to connect to zookeeper (localhost:2181) within 2x zookeeper timeout period 30000

    Root Cause Analysis

    1. java.lang.RuntimeException

      Failed to connect to zookeeper (localhost:2181) within 2x zookeeper timeout period 30000

      at org.apache.accumulo.fate.zookeeper.ZooSession.connect()
    2. org.apache.accumulo
      Initialize.main
      1. org.apache.accumulo.fate.zookeeper.ZooSession.connect(ZooSession.java:123)
      2. org.apache.accumulo.fate.zookeeper.ZooSession.getSession(ZooSession.java:167)
      3. org.apache.accumulo.fate.zookeeper.ZooReader.getSession(ZooReader.java:39)
      4. org.apache.accumulo.fate.zookeeper.ZooReaderWriter.getZooKeeper(ZooReaderWriter.java:50)
      5. org.apache.accumulo.fate.zookeeper.ZooReader.exists(ZooReader.java:166)
      6. org.apache.accumulo.server.init.Initialize.zookeeperAvailable(Initialize.java:277)
      7. org.apache.accumulo.server.init.Initialize.checkInit(Initialize.java:159)
      8. org.apache.accumulo.server.init.Initialize.doInit(Initialize.java:213)
      9. org.apache.accumulo.server.init.Initialize.main(Initialize.java:590)
      9 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. org.apache.accumulo
      Main$1.run
      1. org.apache.accumulo.start.Main$1.run(Main.java:141)
      1 frame
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame