我犯了个错误 2017-10-29 03:34:22,212 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 6, column 13> Syntax error, unexpected symbol at or near ''/home/harsh/Hunny/HadoopPractice/Pig/Upper.jar''
在运行pig脚本时。
如何注册和定义自定义项:
REGISTER '/home/harsh/Hunny/HadoopPractice/Pig/Upper.jar';
DEFINE changeCase Upper();
我的Pig剧本:
A = load 'customer1.txt' USING PigStorage(',') as (name:chararray);
B = foreach A generate changeCase(name);
我的jar位置:
/home/harsh/Hunny/HadoopPractice/Pig
感谢您的帮助:提前谢谢
1条答案
按热度按时间des4xlb01#
结尾缺少分号。