Cloud DataProc和Hbase和Java? 4次尝试后ZooKeeper存在失败。仅限Java客户端

时间:2018-02-14 15:34:00

标签: java hbase apache-zookeeper google-cloud-dataproc

我正在使用Hbase和Java评估Google Data Proc。

尝试从Hbase获取连接时出现以下错误。通过Hbase Shell我可以创建表和列表。仅使用java获取错误

SEVERE: ZooKeeper exists failed after 4 attempts
Feb 14, 2018 3:05:44 PM org.apache.hadoop.hbase.zookeeper.ZKUtil checkExists
WARNING: hconnection-0x499683c40x0, quorum=localhost:2181, baseZNode=/hbase 
Unable to set watcher on znode (/hbase/hbaseid)
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
= ConnectionLoss for /hbase/hbaseid
    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:1045)
    at  org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:220)
    at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:419)
    at 

org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)         在org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)         at org.apache.hadoop.hbase.client.ConnectionManager $ HConnectionImplementation.retrieveClusterId(ConnectionManager.java:905)         在org.apache.hadoop.hbase.client.ConnectionManager $ HConnectionImplementation。(ConnectionManager.java:648)         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)         在org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)         在org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)         在org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)         at com.evermore.talos.platform.datamanagement.core.database.nosql.HBaseContextInitializer.createAndSetHBaseContext(HBaseContextInitializer.java:82)         at com.evermore.talos.platform.datamanagement.core.database.nosql.HBaseContextInitializer.initializeContext(HBaseContextInitializer.java:63)         at com.evermore.talos.platform.datamanagement.core.DataManagementCore.initializeHBaseContext(DataManagementCore.java:117)         at com.evermore.talos.platform.datamanagement.core.DataManagementCore.inititializeQueryProcessor(DataManagementCore.java:94)         at com.evermore.talos.platform.datamanagement.core.DataManagementCore.start(DataManagementCore.java:64)         at com.evermore.talos.platform.datamanagement.core.DataManagementPlatformLifeCycle.start(DataManagementPlatformLifeCycle.java:25)         at com.evermore.talos.platform.platformcontainer.core.ComponentManager.startComponents(ComponentManager.java:34)         at com.evermore.talos.platform.platformcontainer.core.PCManager.start(PCManager.java:39)         在com.evermore.talos.platform.starter.PCMain.main(PCMain.java:34)

2018年2月14日下午3:05:44 org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher keeperException       严重:hconnection-0x499683c40x0,quorum = localhost:2181,baseZNode = / hbase       收到意外的KeeperException,重新抛出异常       org.apache.zookeeper.KeeperException $ ConnectionLossException:KeeperErrorCode = /Lbase / hbaseid的ConnectionLoss         at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)         at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)         在org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1045)         在org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:220)         在org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:419)         在org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)         在org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)         at org.apache.hadoop.hbase.client.ConnectionManager $ HConnectionImplementation.retrieveClusterId(ConnectionManager.java:905)         在org.apache.hadoop.hbase.client.ConnectionManager $ HConnectionImplementation。(ConnectionManager.java:648)         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)         在org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)         在org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)         在org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)         at com.evermore.talos.platform.datamanagement.core.database.nosql.HBaseContextInitializer.createAndSetHBaseContext(HBaseContextInitializer.java:82)         at com.evermore.talos.platform.datamanagement.core.database.nosql.HBaseContextInitializer.initializeContext(HBaseContextInitializer.java:63)         at com.evermore.talos.platform.datamanagement.core.DataManagementCore.initializeHBaseContext(DataManagementCore.java:117)         at com.evermore.talos.platform.datamanagement.core.DataManagementCore.inititializeQueryProcessor(DataManagementCore.java:94)         at com.evermore.talos.platform.datamanagement.core.DataManagementCore.start(DataManagementCore.java:64)         at com.evermore.talos.platform.datamanagement.core.DataManagementPlatformLifeCycle.start(DataManagementPlatformLifeCycle.java:25)         at com.evermore.talos.platform.platformcontainer.core.ComponentManager.startComponents(ComponentManager.java:34)         at com.evermore.talos.platform.platformcontainer.core.PCManager.start(PCManager.java:39)         在com.evermore.talos.platform.starter.PCMain.main(PCMain.java:34)

  Feb 14, 2018 3:05:44 PM org.apache.hadoop.hbase.client.ZooKeeperRegistry 
 getClusterId
   WARNING: Can't retrieve clusterId from Zookeeper
  org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
    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:1045)
    at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:220)
    at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:419)
    at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
    at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:905)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:648)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)
    at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)
    at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)
    at com.evermore.talos.platform.datamanagement.core.database.nosql.HBaseContextInitializer.createAndSetHBaseContext(HBaseContextInitializer.java:82)
    at com.evermore.talos.platform.datamanagement.core.database.nosql.HBaseContextInitializer.initializeContext(HBaseContextInitializer.java:63)
    at com.evermore.talos.platform.datamanagement.core.DataManagementCore.initializeHBaseContext(DataManagementCore.java:117)
    at com.evermore.talos.platform.datamanagement.core.DataManagementCore.inititializeQueryProcessor(DataManagementCore.java:94)
    at com.evermore.talos.platform.datamanagement.core.DataManagementCore.start(DataManagementCore.java:64)
    at com.evermore.talos.platform.datamanagement.core.DataManagementPlatformLifeCycle.start(DataManagementPlatformLifeCycle.java:25)
    at com.evermore.talos.platform.platformcontainer.core.ComponentManager.startComponents(ComponentManager.java:34)

0 个答案:

没有答案