Home Forums HBase Unable to connect to HDP 2.0 HBase from webapp

Tagged: 

This topic contains 8 replies, has 2 voices, and was last updated by  Anatoliy Kaverin 11 months ago.

  • Creator
    Topic
  • #43676

    Greetings,
    I’ve have a webapp which integrates with HBase via Spring Data for Hadoop.
    I had an issue with zookeeper.znode.parent and resolved via configuration:

    zookeeper.znode.parent=/hbase-unsecure

    But now I’m receiving next messages in my logs:

    2013-11-13 11:56:44,928 DEBUG [org.apache.hadoop.hbase.zookeeper.ZKUtil] – hconnection-0x14250b2e32e0008 Unable to get data of znode /hbase-unsecure/root-region-server because node does not exist (not an error)

    Although it states “not an error” – actually my Spring repository doesn’t work and cannot persist data in configured HBase instance.

    Any ideas how it can be fixed?
    I can send my Spring for Hadoop configuration if required.

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #44479

    Thanks for help, guys!
    The issue indeed was that I’ve used obsolete HBase binaries for Sandbox 2.0.
    So far got connection and can move further.

    Collapse
    #44436

    Devaraj Das
    Participant

    Hi Anatolly, did you rebuild your application with the HDP 2.0 bits? The hbase version shipped with HDP 2.0 is 0.96. Your app needs to be recompiled with 0.96 for it to successfully work with a 0.96 cluster.

    From your log message “/hbase-unsecure/root-region-server” doesn’t exist, it seems like the app is assuming a 0.94 cluster. In 0.96, the root-region-server znode is not created (no root region in 0.96) and the client is also correspondingly changed.

    Collapse
    #44427

    Greetings,
    Thanks for your suggestions. I’ve applied all of them – but still I cannot persist data into HBase.

    Here some info from logs:

    INFO [org.apache.zookeeper.ClientCnxn] – Session establishment complete on server hbase.lohika.com/127.0.0.1:2181, sessionid = 0x14293649b11000f, negotiated timeout = 40000
    DEBUG [org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher] – hconnection Received ZooKeeper Event, type=None, state=SyncConnected, path=null

    DEBUG [org.apache.hadoop.hbase.zookeeper.ZKUtil] – hconnection Set watcher on existing znode /hbase-unsecure/master
    DEBUG [org.apache.zookeeper.ClientCnxn] – Reading reply sessionid:0x14293649b11000f, packet:: clientPath:null serverPath:null finished:false header:: 4,4 replyHeader:: 4,3248,0 request:: ‘/hbase-unsecure/master,T response:: #ffffffff000146d61737465723a3630303030bffffffdeffffffa1fffffff8ffffffd95196850425546a24a1773616e64626f782e686f72746f6e776f726b732e636f6d10ffffffe0ffffffd4318fffffff7ffffffc6ffffff98ffffff9bffffffa928100,s{3043,3043,1385452417204,1385452417204,0,0,0,90797002808426497,69,0,3043}
    DEBUG [org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher] – hconnection-0x14293649b11000f connected
    DEBUG [org.apache.hadoop.hbase.zookeeper.ZKUtil] – hconnection-0x14293649b11000f Retrieved 44 byte(s) of data from znode /hbase-unsecure/master and set watcher; PBUF\x0A$\x0A\x17sandbox.hort…
    DEBUG [org.apache.zookeeper.ClientCnxn] – Reading reply sessionid:0x14293649b11000f, packet:: clientPath:null serverPath:null finished:false header:: 5,3 replyHeader:: 5,3248,-101 request:: ‘/hbase-unsecure/root-region-server,T response::
    [org.apache.hadoop.hbase.zookeeper.ZKUtil] – hconnection-0x14293649b11000f /hbase-unsecure/root-region-server does not exist. Watcher is set.
    [org.apache.hadoop.ipc.HBaseRPC] – Using RpcEngine: org.apache.hadoop.hbase.ipc.WritableRpcEngine

    [org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation] – Looked up root region location, connection=org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@729bd59c; serverName=
    DEBUG [org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation] – locateRegionInMeta parentTable=.META., metaLocation=null, attempt=0 of 10 failed; retrying after sleep of 1006 because: Unable to find region for tweets,,99999999999999 after 10 tries.

    Please, pay attention to last line and “/hbase-unsecure/root-region-server does not exist. ”

    Collapse
    #43954
    Collapse
    #43951

    Devaraj Das
    Participant

    Hi, this is required to make HBase work on Sandbox (from the Sandbox devs).

    1) Need to enable HBase. It’s disabled by default (the easiest way is from hue about page).
    2) Need to set in hbase-site.xml the property “zookeeper.znode.parent” to the value “/hbase-unsecure”
    3) Need to make an alias for sandbox.hortonworks.com to 127.0.0.1 on host machine

    Collapse
    #43837

    Devaraj Das
    Participant

    Let me follow up with the Sandbox team on this issue. Thanks for bringing it up!

    Collapse
    #43722

    Devaraj Das, sorry – I forgot to mention that I’m using Sandbox via Oracle VirtualBox. So, there is no data for migration. This happens on fresh environment.

    Collapse
    #43681

    Devaraj Das
    Participant

    Hi Anatoliy, were you running with hdp-1.0 before? If so, have you gone through the upgrade process for HBase.

    Collapse
Viewing 8 replies - 1 through 8 (of 8 total)