Harsh
Harsh

Reputation: 109

Getting error 1070 while using UDF in pig

I am getting error 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'' while running pig script.

How i register and define my UDF:

REGISTER '/home/harsh/Hunny/HadoopPractice/Pig/Upper.jar';
DEFINE changeCase Upper();

My Pig script:

A = load 'customer1.txt' USING PigStorage(',') as (name:chararray);
B = foreach A generate changeCase(name);

My Jar Location:

/home/harsh/Hunny/HadoopPractice/Pig

Any help is appreciated: Thanks in advance

Upvotes: 0

Views: 53

Answers (1)

nobody
nobody

Reputation: 11090

Missing a semicolon at the end.

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

Upvotes: 1

Related Questions