Execution error while creating Hive table on exisitng HBase Table

to create new topics or reply. | New User Registration

This topic contains 0 replies, has 1 voice, and was last updated by  Harika Pokuri 1 year, 8 months ago.

  • Creator
  • #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(“hbase.table.name” = “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(HBaseStorageHandler.java:234)
    at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62)
    at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
    at org.apache.hadoop.hive.ql.metadata.HiveUtils.getStorageHandler(HiveUtils.java:290)
    at org.apache.hadoop.hive.ql.metadata.Table.getStorageHandler(Table.java:281)
    at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3656)
    at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:256)
    at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:144)
    at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
    at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1355)
    at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1139)
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:945)
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
    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?

You must be to reply to this topic. | Create Account

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.