AnsweredAssumed Answered

mapr DB & Hbase coexist in MapR cluster

Question asked by sgudavalli on Jul 15, 2015
Latest reply on Jul 15, 2015 by sgudavalli
Hi,

Can MapR DB and Hbase co-exist in Mapr cluster?

I first started working with MapR DB and implemented Java Code to access MapR DB tables, this works fine for me.

this is how my config looks for MapR DB tables:

conf = HBaseConfiguration.create();
conf.set("fs.default.name", "maprfs://172.xx.xxx.59:7222/");
conf.set("hbase.table.namespace.mappings","*:/user/mapr");

Now, I installed Hbase on my cluster....

conf = HBaseConfiguration.create();
conf.set("hbase.zookeeper.quorum","172.xx.xxx.59,172.xx.xxx.60,172.xx.xxx.61");
conf.set("hbase.zookeeper.property.clientPort","5181");

when I am trying to access my Hbase tables.. I see issues.... I am able to start hbase shell without any issues....  please let  me know if i am doing something wrong.. thank you

15/07/15 11:30:37 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 1 attempts
15/07/15 11:30:37 WARN zookeeper.ZKUtil: hconnection-0x2de8284b, quorum=172.xx.xxx.60:5181,172.xx.xxx.59:5181,172.xx.xxx.61:5181, 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:1041)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:222)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:478)
at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:83)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.retrieveClusterId(HConnectionManager.java:901)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:694)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:455)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:434)
at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:315)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:214)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:187)
at rbr.mapr.HBaseAccess.main(HBaseAccess.java:34)
15/07/15 11:30:37 ERROR zookeeper.ZooKeeperWatcher: hconnection-0x2de8284b, quorum=172.xx.xxx.60:5181,172.xx.xxx.59:5181,172.xx.xxx.61:5181, baseZNode=/hbase Received unexpected KeeperException, re-throwing exception
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:1041)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:222)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:478)
at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:83)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.retrieveClusterId(HConnectionManager.java:901)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:694)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:455)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:434)
at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:315)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:214)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:187)
at rbr.mapr.HBaseAccess.main(HBaseAccess.java:34)
15/07/15 11:30:37 WARN client.ZooKeeperRegistry: 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:1041)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:222)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:478)
at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:83)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.retrieveClusterId(HConnectionManager.java:901)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:694)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:455)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:434)
at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:315)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:214)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:187)
at rbr.mapr.HBaseAccess.main(HBaseAccess.java:34)
15/07/15 11:30:37 WARN client.ClientScanner: scanner failed to close. Exception follows: org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=1, exceptions:
Wed Jul 15 11:30:37 EDT 2015, org.apache.hadoop.hbase.client.RpcRetryingCaller@402e37bc, org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for  after 0 tries.

org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=1, exceptions:
Wed Jul 15 11:30:37 EDT 2015, org.apache.hadoop.hbase.client.RpcRetryingCaller@402e37bc, org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for  after 0 tries.
15/07/15 11:30:37 INFO client.HConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x0
15/07/15 11:30:41 INFO client.ZooKeeperSaslClient: Client will use SIMPLE-SECURITY as SASL mechanism.
15/07/15 11:30:41 INFO zookeeper.ClientCnxn: Opening socket connection to server 172.xx.xxx.59/172.xx.xxx.59:5181. Will attempt to SASL-authenticate using Login Context section 'Client_simple'
15/07/15 11:30:41 INFO zookeeper.ZooKeeper: Session: 0x0 closed
15/07/15 11:30:41 INFO zookeeper.ClientCnxn: EventThread shut down



Outcomes