Home Forums Hive / HCatalog Execution error while creating Hive table on exisitng HBase Table

This topic contains 0 replies, has 1 voice, and was last updated by  Harika Pokuri 9 months, 2 weeks ago.

  • Creator
    Topic
  • #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-0.94.6.1.3.0.0-0380
    Hive version: hive-0.11.0.1.3.0.0-0380
    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’
    ROW COLUMN+CELL
    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-0.11.0.1.3.0.0-0380\lib\hive-hbase-handler-0.11.0.1.3.0.0-0380.jar;
    hive> add jar C:\hdp\hadoop\hive-0.11.0.1.3.0.0-0380\lib\hbase-0.94.6.1.3.0.0-0380.jar;
    hive> add jar C:\hdp\hadoop\hive-0.11.0.1.3.0.0-0380\lib\zookeeper-3.4.5.1.3.0.0-0380.jar;
    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
    ation;
    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 logged in to reply to this topic.