在pig中使用udf时出现错误1070

aemubtdh  于 2021-06-24  发布在  Pig
关注(0)|答案(1)|浏览(407)

我犯了个错误 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

感谢您的帮助:提前谢谢

des4xlb0

des4xlb01#

结尾缺少分号。

REGISTER '/home/harsh/Hunny/HadoopPractice/Pig/Upper.jar';

相关问题