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

Execution error while creating Hive table on exisitng HBase Table

  • #44564

    HDP 1.3 with Windows server 2012 environment. while creating Hive table on existing HBase Table in Stand alone mode, I am facing execution errors. Could you please help? Below are the details
    Hbase version: hbase-
    Hive version: hive-
    1) starting Hbase is successful
    2) Creating ‘hbasetohive’ hbase table is done successfully
    hbase(main):007:0> create ‘hbasetohive’, ‘colFamily’
    hbase(main):008:0> put ‘hbasetohive’, ‘1s’, ‘colFamily:val’,’1strowval’
    hbase(main):009:0> scan ‘hbasetohive’
    1s column=colFamily:val, timestamp=1385975169514, value=1strowval
    3) Started Hive is done
    4) Added required jar files to HIVE by using below commands
    hive> add jar C:\hdp\hadoop\hive-\lib\hive-hbase-handler-;
    hive> add jar C:\hdp\hadoop\hive-\lib\hbase-;
    hive> add jar C:\hdp\hadoop\hive-\lib\zookeeper-;
    5) Trying to create hive table on existing Hbase table and querying it via Hive with below syntax
    CREATE EXTERNAL TABLE hbase_hivetable_k(key string, value string) STORED BY ‘org.apache.hadoop.hive.hbase.HBaseStorageHandler’
    WITH SERDEPROPERTIES (“hbase.columns.mapping” = “colFamily:val”) TBLPROPERTIES(“” = “hbasetohive”);
    Here is my problem and I am getting below Exception while executing above create command
    java.lang.NoSuchMethodError: org.apache.hadoop.hbase.HBaseConfiguration.create(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/conf/Configur
    at org.apache.hadoop.hive.hbase.HBaseStorageHandler.setConf(
    at org.apache.hadoop.util.ReflectionUtils.setConf(
    at org.apache.hadoop.util.ReflectionUtils.newInstance(
    at org.apache.hadoop.hive.ql.metadata.HiveUtils.getStorageHandler(
    at org.apache.hadoop.hive.ql.metadata.Table.getStorageHandler(
    at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(
    at org.apache.hadoop.hive.ql.exec.DDLTask.execute(
    at org.apache.hadoop.hive.ql.exec.Task.executeTask(
    at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(
    at org.apache.hadoop.hive.ql.Driver.launchTask(
    at org.apache.hadoop.hive.ql.Driver.execute(
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(
    at org.apache.hadoop.hive.cli.CliDriver.processLine(
    at org.apache.hadoop.util.RunJar.main(
    FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.DDLTask
    Please help me out in fixing this issue and please let me know Am I missing any step?

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.