java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster

SpringSource Issue Tracker | Yifeng Xiao | 4 years ago
  1. 0

    Reproduce Steps: 1. Create a default hortonworks HBase cluster with command "cluster create --name DefaultHBaseTestdceee7 --distro hw --type HBase". Create successfully. 2. Check HMaster Actual Result: HMaster service and zookeeper is not started. See log in HMaster(hbase-hbase-master-10.111.57.171.log ): {code} 2013-06-05 12:26:57,260 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1958) at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152) at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76) at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1972) Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase at org.apache.zookeeper.KeeperException.create(KeeperException.java:99) at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1041) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1069) at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:199) at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1111) at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1101) at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1085) at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.createBaseZNodes(ZooKeeperWatcher.java:162) at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:155) at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:321) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1953) ... 5 more {code} Expected Result: Every components in the cluster works well if creation succeed. All logs were in attachement file.

    SpringSource Issue Tracker | 4 years ago | Yifeng Xiao
    java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
  2. 0

    Reproduce Steps: 1. Create a default hortonworks HBase cluster with command "cluster create --name DefaultHBaseTestdceee7 --distro hw --type HBase". Create successfully. 2. Check HMaster Actual Result: HMaster service and zookeeper is not started. See log in HMaster(hbase-hbase-master-10.111.57.171.log ): {code} 2013-06-05 12:26:57,260 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1958) at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152) at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76) at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1972) Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase at org.apache.zookeeper.KeeperException.create(KeeperException.java:99) at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1041) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1069) at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:199) at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1111) at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1101) at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1085) at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.createBaseZNodes(ZooKeeperWatcher.java:162) at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:155) at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:321) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1953) ... 5 more {code} Expected Result: Every components in the cluster works well if creation succeed. All logs were in attachement file.

    SpringSource Issue Tracker | 4 years ago | Yifeng Xiao
    java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
  3. 0

    Hadoop HBase user's mailing list ()

    gmane.org | 9 months ago
    java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hbase master failing to start after reaching 95% disk and expanding cluster

    Google Groups | 4 years ago | Marco Gallotta
    java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
  6. 0

    HBase Issues (perhaps related to 127.0.0.1)

    Google Groups | 4 years ago | Ratner, Alan S (IS)
    java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster

  1. nasimk 3 times, last 3 weeks ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.zookeeper.KeeperException$ConnectionLossException

    KeeperErrorCode = ConnectionLoss for /hbase

    at org.apache.zookeeper.KeeperException.create()
  2. Zookeeper
    ZooKeeper.exists
    1. org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
    2. org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
    3. org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1041)
    4. org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1069)
    4 frames
  3. HBase - Client
    HMaster.<init>
    1. org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:199)
    2. org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1111)
    3. org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1101)
    4. org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:1085)
    5. org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.createBaseZNodes(ZooKeeperWatcher.java:162)
    6. org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:155)
    7. org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:321)
    7 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    4 frames
  5. HBase - Client
    HMasterCommandLine.run
    1. org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1953)
    2. org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:152)
    3. org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104)
    3 frames
  6. Hadoop
    ToolRunner.run
    1. org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    1 frame
  7. HBase
    ServerCommandLine.doMain
    1. org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
    1 frame
  8. HBase - Client
    HMaster.main
    1. org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1972)
    1 frame