Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Pig server not starting error : PigServer pigServer  = new PigServer(“mapred”);


Copy link to this message
-
Re: Pig server not starting error : PigServer pigServer = new PigServer(“mapred”);
The first exception is because something seems incorrect with how
HBaseStorage is being initialized. Check how you're initializing it.
Sending your script along would be helpful too.

The seconds exception can be fixed by getting those hadoop configs on your
classpath. Try setting PIG_CLASSPATH to their location.

On Sat, Apr 14, 2012 at 12:50 AM, shashwat shriparv <
[EMAIL PROTECTED]> wrote:

> I am trying to run a pig script, using java udf function, my problem is
> that when i am *trying start pigserver in local mode its giving exception
> as follows:*
>
> Exception in thread "main"
> org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable
> to open iterator for alias data
>    at org.apache.pig.PigServer.openIterator(PigServer.java:901)
>    at regression.UPPER.predict(UPPER.java:184)
>    at regression.UPPER.main(UPPER.java:119)
> Caused by: org.apache.pig.PigException: ERROR 1002: Unable to store alias
> data
>    at org.apache.pig.PigServer.storeEx(PigServer.java:1000)
>    at org.apache.pig.PigServer.store(PigServer.java:963)
>    at org.apache.pig.PigServer.openIterator(PigServer.java:876)
>    ... 2 more
> Caused by:
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobCreationException:
> ERROR 2017: Internal error creating job configuration.
>    at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:716)
>    at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:258)
>    at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:149)
>    at org.apache.pig.PigServer.launchPlan(PigServer.java:1314)
>    at
> org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1299)
>    at org.apache.pig.PigServer.storeEx(PigServer.java:996)
>    ... 4 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
>    at HBase.HBaseStorage.setLocation(HBaseStorage.java:378)
>    at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:382)
>    ... 9 more
>
>
>
> *And if i am trying to start pig server in mapred mode its giving the
> following exception :
>
> *
>
> Exception in thread "main"
> org.apache.pig.backend.executionengine.ExecException: ERROR 4010:
> Cannot find hadoop configurations in classpath (neither
> hadoop-site.xml nor core-site.xml was found in the classpath).If you
> plan to use local mode, please put -x local option in command line
>    at
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:153)
>    at
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:118)
>    at org.apache.pig.impl.PigContext.connect(PigContext.java:185)
>    at org.apache.pig.PigServer.<init>(PigServer.java:244)
>    at org.apache.pig.PigServer.<init>(PigServer.java:229)
>    at org.apache.pig.PigServer.<init>(PigServer.java:225)
>    at org.apache.pig.PigServer.<init>(PigServer.java:221)
>    at org.apache.pig.PigServer.<init>(PigServer.java:211)
>    at regression.UPPER.main(UPPER.java:115)
> Java Result: 1
>
> Please suggest the solution. where exactly do i need to put the hadoop
> configuration file? so the pig will start in mapred mode
>
> Thanks
>
>
>
> --
>
>
> ∞
> Shashwat Shriparv
>

--
*Note that I'm no longer using my Yahoo! email address. Please email me at
[EMAIL PROTECTED] going forward.*