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

Hive / HCatalog Forum

Using HBASE in HDP 2.0

  • #44134
    Juan Giraldo

    Hi Everyone,
    I’m reading this post “Using Hive to interact with HBase, Part 2” and I’m getting frustrated because I can’t populate the HBase table via Hive query in HDP 2.0 sandbox. I really need to get working this task and I can’t wait for a new release. So, I went to the apache bug report page and I got the HIVE-5515 patch but when I try to execute this patch in the sandbox, I’m getting the following message:

    patch -p1 < HIVE-5515.patch

    Can't find file to patch at input line 5
    Perhaps you used the wrong -p r –strip option?
    The text leading up to this was:
    diff –git a/ql/src/java/org/apache/hadoop/hive/ql/exec/ b/ql/src/java/org/apache/hadoop/hive/ql/exec/
    index 7c78b38..7586ee0 100644
    — a/ql/src/java/org/apache/hadoop/hive/ql/exec/
    +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/
    File to patch:

    if I skip these files and I execute again the hive query, I get the following known error:

    Hive query:
    hive -e "FROM pgc INSERT INTO TABLE pagecounts_hbase SELECT pgc.* WHERE rowkey LIKE 'en/q%' LIMIT 10"

    Log result:

    FAILED: Execution Error, return code 1 from

    Does anyone know How can i get working this patch in my sandbox in order to run the hive query?

    I appreciate your help!!


  • Author
  • #44204
    Carter Shanklin

    Juan can you use the HDP 1.3 Sandbox? It uses an earlier version of Hive and does not have the issue mentioned in HIVE-5515.

    Nick Dimiduk

    Hi Juan,

    I’m glad you found the post helpful! I’m afraid the issue you’re facing is not addressed by patching the sandbox, but by Hive itself. You’d need to download the source of Hive 0.12.0, apply the patch, and build a new jar.

    I’m pleased to see that this issue is being addressed in our next release of HDP-2.0. You should see the issue resolved in the next version of the sandbox. In the mean time, as Cater says, can you use the HDP-1.3 sandbox instead?

    Thanks for your patience,

    Juan Giraldo

    Hi Nick and Carter,
    Definitely, I’m going to use the HDP 1.3 Sandbox.

    Thank you so much!!

The forum ‘Hive / HCatalog’ 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.