Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> pig start error: ERROR 2999: Unexpected internal error. Undefined parameter : PIGDIR


Copy link to this message
-
Re: pig start error: ERROR 2999: Unexpected internal error. Undefined parameter : PIGDIR
Alex,

I just downloaded the latest Pig 0.6 Release Candidate from
http://people.apache.org/~gates/pig-0.6.0-candidate-1/pig-0.6.0.tar.gz and
followed the instructions in "Trying the Release" section as outlined in
http://people.apache.org/~gates/pig-0.6.0-candidate-1/RELEASE_NOTES.txt and
without taking any extra step anywhere in between I am able to get Pig
running. You may want to do the same thing. If it works that would be great
else we will be sure that its some environment problem in your setup and we
can take it from there.

Ashutosh

On Wed, Feb 17, 2010 at 13:51, Dmitriy Ryaboy <[EMAIL PROTECTED]> wrote:

> Probably unrelated, but I always run from the root directory, not from
> bin/,
> when working with an svn version. Also, never had dev vs core issues. Can
> you try cding to pig-branch-0.6-take2 and running ./bin/pig , and put
> pig.jar (not core, not  dev) on $PIG_CLASSPATH?
>
> How about avoiding the pig script and just running
>
> java -cp $PIGDIR/pig.jar:$HADOOP_CONF_DIR  org.apache.pig.Main
> <<yourscript>> ?
>
> I grepped through all the code, including the codegenned stuff, and none of
> it contains the string PIGDIR (except bin/pig of course).
>
> At this point, assuming none of the above helps (which I have little hope
> it
> will), the best I can say is set up your eclipse environment and step
> through pig's main with the debugger.
>
> -D
>
> On Wed, Feb 17, 2010 at 2:53 AM, Alex Parvulescu
> <[EMAIL PROTECTED]>wrote:
>
> > Hello
> >
> > This is getting tiresome :)
> >
> > Today, I tried with a fresh download of pig 0.5 and I get the exact same
> > error. Something somewhere just broke down, and it took my machine with
> it.
> > At this point I have no way to run any kind of pig version.
> > Needless to say, this is a big problem for me :)
> >
> > Another thing I tried is to do a fresh build of the 0.6 branch. Same
> error.
> > I even dropped the sym links.
> >
> > Back to our debugging session:
> >
> > > svn co
> >
> http://svn.apache.org/repos/asf/hadoop/pig/branches/branch-0.6pig-branch-0.6-take2
> > A    pig-branch-0.6-take2/test/bin/test-patch.sh
> > Checked out external at revision 910901.
> >
> > Checked out revision 910900.
> >
> > > cd pig-branch-0.6-take2/
> > > ant
> > BUILD SUCCESSFUL
> > Total time: 26 seconds
> >
> > > cd bin/
> >
> > next is to check if all vars are there
> > > printenv | grep PIG
> > PIG_HOME=/home/alex/hadoop/pig-branch-0.6-take2
> > PIGDIR=/home/alex/hadoop/pig-branch-0.6-take2
> >
> > > printenv | grep HADOOP
> > HADOOP_HOME=/home/alex/hadoop/hadoop
> > HADOOP_CONF_DIR=/home/alex/hadoop/hadoop/conf
> > HADOOPDIR=/home/alex/hadoop/hadoop/conf
> >
> > > pig
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > jline/ConsoleReaderInputStream
> > Caused by: java.lang.ClassNotFoundException:
> jline.ConsoleReaderInputStream
> >    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >    at java.security.AccessController.doPrivileged(Native Method)
> >    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> >    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> >    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > Could not find the main class: org.apache.pig.Main.  Program will exit.
> >
> > I've sent some email to the list about this problem before. A quick fix
> is
> > to copy and rename the build/pig-0.6.1-dev.jar. Here goes:
> > > cp ../build/pig-0.6.1-dev.jar ../pig-0.6.1-dev-core.jar
> >
> > > pig
> > 2010-02-17 11:48:52,843 [main] INFO  org.apache.pig.Main - Logging error
> > messages to:
> > /home/alex/hadoop/pig-branch-0.6-take2/bin/pig_1266403732842.log
> > 2010-02-17 11:48:53,175 [main] INFO
> > org.apache.pig.backend.hadoop.executionengine.HExecutionEngine -
> Connecting
> > to hadoop file system at: file:///
> > grunt>
> >
> > Now at least it will start.
> >
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB