0

我正在尝试从 Pig 脚本加载数据。存储在 HBase 中的数据,我可以在 HCatalog 中映射和创建表。但是当我尝试从 Pig 访问 HCatalog 表时,我遇到了异常

Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.hbase.HBaseStorageHandler cannot be cast to org.apache.hcatalog.mapreduce.HCatStorageHandler
    at org.apache.hcatalog.common.HCatUtil.getStorageHandler(HCatUtil.java:425)
    at org.apache.hcatalog.common.HCatUtil.getStorageHandler(HCatUtil.java:374)
    at org.apache.hcatalog.mapreduce.InitializeInput.extractPartInfo(InitializeInput.java:157)
    at org.apache.hcatalog.mapreduce.InitializeInput.getInputJobInfo(InitializeInput.java:136)
    at org.apache.hcatalog.mapreduce.InitializeInput.setInput(InitializeInput.java:85)
    at org.apache.hcatalog.mapreduce.HCatInputFormat.setInput(HCatInputFormat.java:85)

有什么办法可以解决这个问题吗?

4

1 回答 1

0

Jira 中已经存在关于此https://issues.apache.org/jira/browse/HCATALOG-621的问题。应用此处提供的补丁: https ://issues.apache.org/jira/secure/attachment/12614519/HCATALOG-621.addendum.00.patch

于 2014-06-04T11:45:05.350 回答