I am trying to run my first UDF using the example
http://wiki.apache.org/pig/UDFManual. Now i have my FirstUdf.jar,myscript.pig both in same folder
My myscript.pig is as follows
REGISTER FirstUdf.jar; A = LOAD '/home/vishal/exampleforPIG1' AS
(exchange: chararray, symbol: chararray, date: int,value:float);
B =FOREACH A GENERATE myudfs.UPPER(symbol);
DUMP B;
Now when i am giving the following command to run my script it gives me the following error
Command--
java -cp FirstUdf.jar home/vishal/FirstUdf.jar -x local myscript.pig
Following Error--
ERROR 1000: Error during parsing. Encountered " "java "" at line 1, column 1.
Am i giving the command wrong or what is the issue