我跟随这个链接在cdh5上安装了shark。我已经安装了它,但正如上面提到的block:-
This -skipRddReload is only needed when you have some table with hive/hbase mapping, because of some issus in PassthroughOutputFormat by hive hbase handler.
the error message is something like:
"Property value must not be null"
or
"java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.io.HivePassThroughOutputFormat"
我在配置单元中创建了一个外部表来访问hbase表,当我尝试使用shark时 -skipRddReload
,shark启动了,但是当我尝试访问shark中的同一个外部表时,得到了一个错误
java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.io.HivePassThroughOutputFormat
有什么解决办法吗?
编辑
hbase到配置单元
CREATE EXTERNAL TABLE abc (key string,LPID STRING,Value int,ts1 STRING,ts2 STRING)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES
("hbase.columns.mapping" = ":key,cf1:LPID,cf1:Value,cf1:ts1,cf1:ts2")
TBLPROPERTIES("hbase.table.name" = "abc");
这是我想在shark中访问的,有什么解决方案吗?
暂无答案!
目前还没有任何答案,快来回答吧!