问题描述
A = LOAD 'eventnew.txt' USING HCatalogLoader();
2015-07-08 19:56:34,875 [main] 错误 org.apache.pig.tools.grunt.Grunt - 错误 1070:无法使用导入解析 HCatalogLoader:[、java.lang.、org.apache.pig.builtin., org.apache.pig.impl.builtin.]日志文件中的详细信息:/home/KS5023833/pig_1436364102374.log
然后我尝试了
A = LOAD 'xyz' USING org.apache.hive.hcatalog.pig.HCatLoader();
这也不起作用.
1070:无法使用导入解析 org.apache.hive.hcatalog.pig.HCatLoader:[, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
有什么问题吗?我是 Hadoop 的新手.
如 GoBrewers14 所述,您必须使用 -useHCatalog 启动 pig.如果您正在运行 Pig 脚本,另一种方法是确定 HCatalog jar 的位置,并将带有 jar 路径的 REGISTER 语句添加到脚本顶部
示例:
注册/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 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!