The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HBase Forum

Unable to connect to HDP 2.0 HBase from webapp

  • #43676

    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:


    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.

  • Author
  • #43681
    Devaraj Das

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


    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.

    Devaraj Das

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

    Devaraj Das

    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 to on host machine


    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, 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. ”

    Devaraj Das

    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.


    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.

The forum ‘HBase’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.