I can only guess that pig.jar does not live in the directory you are running
this command from.
As you can see from the paste below, what you are doing should work assuming
pig.jar exists.

dmitriy$ java -Xmx256m -cp pig.jar org.apache.pig.Main -x local
2010-12-05 11:34:49,776 [main] INFO  org.apache.pig.Main - Logging error
messages to: /Users/dmitriy/src/pig-0.8/pig_1291577689774.log
2010-12-05 11:34:50,134 [main] INFO
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting
to hadoop file system at: file:///
grunt>

-Dmitriy
P.S. Questions like this are better directed to the user list, not the dev
list.


On Fri, Dec 3, 2010 at 3:22 AM, hiba houimli <[email protected]> wrote:

>
> Hi,
>
> When I try to run the Pig Scripts in Local Mode and I Set the maximum
> memory for Java:
>  java -Xmx256m -cp pig.jar org.apache.pig.Main -x local script1-local.pig
> I have this problem Excetion in thread main jav.long.NOClassDefFoundError:
> org/apache/pig/main
> I need help please and thank you
  • about pig hiba houimli
    • Re: about pig Dmitriy Ryaboy

Reply via email to