Pig starts, the error you are getting is from inside pig.Main . I think something is getting messed up in your environment because you are juggling too many different versions of pig (granted, I have 3 or 4 in various stages of development on my laptop most of the time, and haven't had your problems. But then neither of them has a hacked bin/pig , with the exception of the cloudera one...). I've never tried running multiple ant tests, either. There's a short "sanity" version of tests, ant test-commit, that runs in under 10 minutes. You might want to try that if you are not doing things like changing join implementations or messing with the optimizer.
Let's do this: send a full trace of what you are doing and what your environment looks like. Something like pwd printenv | grep JAVA printenv | grep PIG printenv | grep HADOOP cat conf/pig.properties java -cp ........ <boom!> -D On Tue, Feb 16, 2010 at 12:39 AM, Alex Parvulescu <[email protected]> wrote: > Hello, > > sorry for the delay, but I wanted to build from the source again just to > make sure. > > The script is like this: > > 'A = load '/home/alex/hadoop/reviews/r.csv' using PigStorage('\t') as (id: > long, hid: long, locale: chararray, r1: int, r2: int, r3: int, r4: int); ' > > That's it. My guess is that Pig doesn't even start. Do you think I need to > change something in the properties file? I'm not sure anymore and I don't > have a lot of luck going through the sources. > > And another thing, I tried running 'ant test' for both 0.6-branch and trunk > at the same time (because they take a very long time) and both test scripts > failed. I've switched to running them one after the other and they are fine. > Do you think that is ok? > > thanks for your time, > alex > > On Fri, Feb 12, 2010 at 6:37 PM, Dmitriy Ryaboy <[email protected]> wrote: > >> what does your script1-hadoop.pig look like? >> >> The error you are getting happens when the pig preprocessor can't >> substitute Pig variables (the stuff you specify with -param and >> %default, etc). Do you have $PIGDIR in your script somewhere? >> >> -D >> >> On Fri, Feb 12, 2010 at 6:51 AM, Alex Parvulescu >> <[email protected]> wrote: >> > Hello, >> > >> > I seem to have broken my Pig install, and I don't know where to look. >> > >> > If I use directly the script (grunt) everything works ok, but every time >> I >> > try to run a pig script: 'java -cp $PIGDIR/pig.jar:$HADOOPSITEPATH >> > org.apache.pig.Main script1-hadoop.pig' >> > >> > I get this nice error: [main] ERROR org.apache.pig.Main - ERROR 2999: >> > Unexpected internal error. Undefined parameter : PIGDIR >> > >> > Obviously I have the PIGDIR var set: >> >> echo $PIGDIR >> >> /home/alex/hadoop/pig >> > >> > This is something that I did, as I have used 0.5 and 0.6 and a patched >> > version of 0.6 in parallel, but I can't figure out where to look. Any >> > version I try to start now, gives the same error. >> > >> > any help would be greatly appreciated! >> > >> > alex >> > >> >
