hive整合hbase时,创建hive表语句的时候没有错误但是报错
hive语句
create external table event_logs_20151220(key string, pl string, ver string, s_time string, u_ud string, u_sd string, en string)
stored by 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
with serdeproperties ("hbase.columns.mapping" = ":key,info:pl,info:ver,info:s_time,info:u_ud,info:u_sd,info:en")
tblproperties ("hbase.table.name" = "event_logs_20151220");
报错信息:
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. org/apache/hadoop/hbase/HBaseConfiguration
hive日志信息:
2016-11-24 08:45:02,554 ERROR [main]: exec.DDLTask (DDLTask.java:execute(483)) - java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration
at org.apache.hadoop.hive.hbase.HBaseStorageHandler.setConf(HBaseStorageHandler.java:279)