Is com.pig.udf.PigUDF on your classpath ?

Best Regard,
Jeff Zhang


From: Divya Gehlot <[email protected]<mailto:[email protected]>>
Date: Saturday, July 11, 2015 at 12:16 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>, Jianfeng Zhang 
<[email protected]<mailto:[email protected]>>
Subject: Re: Setup debug mode in eclipse for Java UDF and pig script

Thanks Jeff for quick solution .
Now I am getting error as below :
<line 5, column 33> Failed to generate logical plan. Nested exception: 
org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not 
resolve com.pig.udf.PigUDF using imports: [, java.lang., 
org.apache.pig.builtin., org.apache.pig.impl.builtin.]

Where PigUDF  is my UDF class .

Thanks,



On 10 July 2015 at 14:03, Jianfeng (Jeff) Zhang 
<[email protected]<mailto:[email protected]>> wrote:

You can use pig¹s java API to debug your script in eclipse.
Here¹s one simple example.

public static void main(String[] args) throws IOException {
        PigServer pig = new PigServer(ExecType.LOCAL);
        pig.registerScript("myscript.pig");
    }




Best Regard,
Jeff Zhang





On 7/9/15, 7:50 PM, "Divya Gehlot" 
<[email protected]<mailto:[email protected]>> wrote:

>Hi,
>I am new to pig .
>Can somebody help me setting he debug mode in eclipse  in easy steps.
>Would really appreciate the help.
>
>Thanks


Reply via email to