hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepesh Khandelwal (JIRA)" <>
Subject [jira] [Created] (HIVE-6698) script does not correctly load the hbase storage handler jars
Date Wed, 19 Mar 2014 19:13:42 GMT
Deepesh Khandelwal created HIVE-6698:

             Summary: script does not correctly load the hbase storage handler jars
                 Key: HIVE-6698
             Project: Hive
          Issue Type: Bug
          Components: HCatalog
    Affects Versions: 0.13.0
            Reporter: Deepesh Khandelwal
            Assignee: Deepesh Khandelwal
         Attachments: HIVE-6698.patch

Currently queries using the HBaseHCatStorageHandler when run using fail. Example query
create table pig_hbase_1(key string, age string, gpa string)
STORED BY 'org.apache.hcatalog.hbase.HBaseHCatStorageHandler'
TBLPROPERTIES ('hbase.columns.mapping'=':key,info:age,info:gpa');
Following error is seen in the hcat logs:
2014-03-18 08:25:49,437 ERROR ql.Driver ( - FAILED: SemanticException Error in loading storage
org.apache.hadoop.hive.ql.parse.SemanticException: Error in loading storage
	at org.apache.hive.hcatalog.cli.SemanticAnalysis.CreateTableHook.postAnalyze(
	at org.apache.hive.hcatalog.cli.SemanticAnalysis.HCatSemanticAnalyzer.postAnalyze(
	at org.apache.hadoop.hive.ql.Driver.compile(
	at org.apache.hadoop.hive.ql.Driver.compile(
	at org.apache.hadoop.hive.ql.Driver.compileInternal(
	at org.apache.hadoop.hive.ql.Driver.runInternal(
	at org.apache.hive.hcatalog.cli.HCatCli.processCmd(
	at org.apache.hive.hcatalog.cli.HCatCli.processLine(
	at org.apache.hive.hcatalog.cli.HCatCli.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.hadoop.util.RunJar.main(
Caused by: Error in loading storage
	at org.apache.hive.hcatalog.common.HCatUtil.getStorageHandler(
	at org.apache.hive.hcatalog.cli.SemanticAnalysis.CreateTableHook.postAnalyze(
	... 16 more
Caused by: java.lang.ClassNotFoundException: org.apache.hcatalog.hbase.HBaseHCatStorageHandler
	at$ Source)
	at Method)
	at Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.apache.hive.hcatalog.common.HCatUtil.getStorageHandler(
	... 17 more
The problem is that the hbaseStorageJar is incorrect with the merging of hcat into hive. Also
as per HIVE-6695 we should add the HBASE_LIB in the classpath.

This message was sent by Atlassian JIRA

View raw message