我已按照此链接在 CDH5 上安装鲨鱼。我已经安装了它,但正如上面提到的那样:-
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"
我在 hive 中创建了一个外部表来访问 Hbase 表,当我尝试使用鲨鱼时 -skipRddReload
,鲨鱼开始了,但是当我试图在鲨鱼中访问同一个外部表时出现错误
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");
我想在鲨鱼中访问这个 abc,有什么解决方案吗?