我正在尝试从 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)
有什么办法可以解决这个问题吗?