本文介绍了在运行HCatalog时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  A = LOAD'eventnew.txt'USING HCatalogLoader(); 



然后我尝试了

  A = LOAD'xyz'USING org.apache.hive.hcatalog.pig.HCatLoader(); 

这也行不通。

有什么问题?我是Hadoop的新手。

解决方案

正如GoBrewers14所述,您必须从-useHCatalog开始。如果您正在运行Pig脚本,另一种方法是确定HCatalog jar的位置,并将REGISTER语句的jar路径添加到脚本的顶部。



示例:

注册/home/user/Installations/hive-0.11.0-bin/hcatalog/share/hcatalog/hcatalog-core-0.11 .0.jar;



当然,您的路径/版本可能不同。


A = LOAD 'eventnew.txt' USING HCatalogLoader();

Then I tried

 A = LOAD 'xyz' USING org.apache.hive.hcatalog.pig.HCatLoader();

This is also not working.

what is the problem? I am a novice in Hadoop.

解决方案

As stated by GoBrewers14 you must start pig with -useHCatalog. If you are running a Pig script an alternative is to determine the location of the HCatalog jar and add a REGISTER statement with the path of the jar to the top of your script

Example:

REGISTER /home/user/Installations/hive-0.11.0-bin/hcatalog/share/hcatalog/hcatalog-core-0.11.0.jar;

of course your path/version may be different.

这篇关于在运行HCatalog时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-19 09:36