You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by Puneet Sareen <Pu...@infosys.com> on 2015/07/03 13:59:35 UTC

SOS: Need urgent help with Pig units

We are working on PIG script execution from Java code(PigUnit) in local mode. But we are getting following error while executing PigUnit :

org.apache.pig.PigException: ERROR 1002: Unable to store alias B
        at org.apache.pig.PigServer.storeEx(PigServer.java:1038)
        at org.apache.pig.PigServer.store(PigServer.java:997)
        at org.apache.pig.PigServer.store(PigServer.java:965)
        at main.Pig.runIdQuery(Pig.java:23)
        at main.Pig.main(Pig.java:10)
Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 0: java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.
        at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:286)
        at org.apache.pig.PigServer.launchPlan(PigServer.java:1390)
        at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1375)
        at org.apache.pig.PigServer.storeEx(PigServer.java:1034)
        ... 4 more
Caused by: java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.
        at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:120)
        at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:82)
        at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:75)
        at org.apache.hadoop.mapred.JobClient.init(JobClient.java:470)
        at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:449)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:163)
        at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:280)



Please also find attached PigUnit (Java file) which we are trying to execute.
We have tried couple of solution to resolve the issue but we now are stuck with error and not able to proceed further.

Environment Detail :

1.       Haddop - 2.2.6

2.       Pig - 0.14.0

Regards,
Puneet


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Re: SOS: Need urgent help with Pig units

Posted by Praveen R <pr...@sigmoidanalytics.com>.
Looks like map-reduce isn't properly configured. You could test it by
running a map-reduce word count example.

On Fri, Jul 3, 2015 at 5:29 PM, Puneet Sareen <Pu...@infosys.com>
wrote:

>  We are working on PIG script execution from Java code(PigUnit) in local
> mode. But we are getting following error while executing PigUnit :
>
>
>
> org.apache.pig.PigException: ERROR 1002: Unable to store alias B
>
>         at org.apache.pig.PigServer.storeEx(PigServer.java:1038)
>
>         at org.apache.pig.PigServer.store(PigServer.java:997)
>
>         at org.apache.pig.PigServer.store(PigServer.java:965)
>
>         at main.Pig.runIdQuery(Pig.java:23)
>
>         at main.Pig.main(Pig.java:10)
>
> Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 0:
> java.io.IOException: Cannot initialize Cluster. Please check your
> configuration for mapreduce.framework.name and the correspond server
> addresses.
>
>         at
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:286)
>
>         at org.apache.pig.PigServer.launchPlan(PigServer.java:1390)
>
>         at
> org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1375)
>
>         at org.apache.pig.PigServer.storeEx(PigServer.java:1034)
>
>         ... 4 more
>
> Caused by: java.io.IOException: Cannot initialize Cluster. Please check
> your configuration for mapreduce.framework.name and the correspond server
> addresses.
>
>         at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:120)
>
>         at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:82)
>
>         at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:75)
>
>         at org.apache.hadoop.mapred.JobClient.init(JobClient.java:470)
>
>         at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:449)
>
>         at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:163)
>
>         at
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:280)
>
>
>
>
>
> Please also find attached PigUnit (Java file) which we are trying to
> execute.
>
> We have tried couple of solution to resolve the issue but we now are stuck
> with error and not able to proceed further.
>
>
>
> Environment Detail :
>
> 1.       Haddop – 2.2.6
>
> 2.       Pig – 0.14.0
>
>
>
> Regards,
>
> Puneet
>
>
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
> for the use of the addressee(s). If you are not the intended recipient, please
> notify the sender by e-mail and delete the original message. Further, you are not
> to copy, disclose, or distribute this e-mail or its contents to any other person and
> any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
> every reasonable precaution to minimize this risk, but is not liable for any damage
> you may sustain as a result of any virus in this e-mail. You should carry out your
> own virus checks before opening the e-mail or attachment. Infosys reserves the
> right to monitor and review the content of all messages sent to or from this e-mail
> address. Messages sent to or from this e-mail address may be stored on the
> Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>
>