You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by paradisehit <pa...@163.com> on 2008/10/16 15:58:31 UTC

How to run pig.pl?

 I download the types-stable-1, and build it with hadoop 0.18 using ant.

Also, I copy the hadoop-site.xml from hadoop0.18's conf, and I annotate the hod's parameters in the conf/pig.properties, like this:

 53 #exectype=mapreduce
 54 
 55 #hod.config.dir=/export/crawlspace/kryptonite/hod/current/conf
 56 #hod.server=local
 57 
 58 #cluster.domain=inktomisearch.com
 59 
 60 #log.file=
 61 
 62 #yinst.cluster=kryptonite

and I run the scripts/pig.pl

it shows that:

paradise@shixing:~/hadoop-v2/types-stable-1$ scripts/pig.pl
I can't find HOD configuration for , hopefully you weren't planning on using HOD.
2008-10-16 21:57:05,483 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: file:///
2008-10-16 21:57:05,680 [main] INFO  org.apache.hadoop.metrics.jvm.JvmMetrics - Initializing JVM Metrics with processName=JobTracker, sessionId=
grunt> ls
file:/home/paradise/hadoop-v2/types-stable-1/bin    <dir>
..

why pig still use the local filesystem? not hadoop?

How can I run it on hadoop?

 
 
 

Re: How to run pig.pl?

Posted by Ian Holsman <li...@holsman.net>.
Olga Natkovich wrote:
> Hi,
>
> pig.pl is  really a leftover from earlier versions. You want to try
> bin/pig. 
>   

I also found that specifying the environment variable PIG_CLASSPATH to 
my hadoop configuration directory helps as well.

Regards
Ian
> Olga
>
>   
>> -----Original Message-----
>> From: paradisehit [mailto:paradisehit@163.com] 
>> Sent: Thursday, October 16, 2008 6:59 AM
>> To: pig-user
>> Subject: How to run pig.pl?
>>
>>  I download the types-stable-1, and build it with hadoop 0.18 
>> using ant.
>>
>> Also, I copy the hadoop-site.xml from hadoop0.18's conf, and 
>> I annotate the hod's parameters in the conf/pig.properties, like this:
>>
>>  53 #exectype=mapreduce
>>  54
>>  55 #hod.config.dir=/export/crawlspace/kryptonite/hod/current/conf
>>  56 #hod.server=local
>>  57
>>  58 #cluster.domain=inktomisearch.com
>>  59
>>  60 #log.file=
>>  61
>>  62 #yinst.cluster=kryptonite
>>
>> and I run the scripts/pig.pl
>>
>> it shows that:
>>
>> paradise@shixing:~/hadoop-v2/types-stable-1$ scripts/pig.pl I 
>> can't find HOD configuration for , hopefully you weren't 
>> planning on using HOD.
>> 2008-10-16 21:57:05,483 [main] INFO  
>> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine
>>  - Connecting to hadoop file system at: file:///
>> 2008-10-16 21:57:05,680 [main] INFO  
>> org.apache.hadoop.metrics.jvm.JvmMetrics - Initializing JVM 
>> Metrics with processName=JobTracker, sessionId=
>> grunt> ls
>> file:/home/paradise/hadoop-v2/types-stable-1/bin    <dir>
>> ..
>>
>> why pig still use the local filesystem? not hadoop?
>>
>> How can I run it on hadoop?
>>
>>  
>>  
>>  
>>
>>     
>
>   


RE: How to run pig.pl?

Posted by Olga Natkovich <ol...@yahoo-inc.com>.
Hi,

pig.pl is  really a leftover from earlier versions. You want to try
bin/pig. 

Olga

> -----Original Message-----
> From: paradisehit [mailto:paradisehit@163.com] 
> Sent: Thursday, October 16, 2008 6:59 AM
> To: pig-user
> Subject: How to run pig.pl?
> 
>  I download the types-stable-1, and build it with hadoop 0.18 
> using ant.
> 
> Also, I copy the hadoop-site.xml from hadoop0.18's conf, and 
> I annotate the hod's parameters in the conf/pig.properties, like this:
> 
>  53 #exectype=mapreduce
>  54
>  55 #hod.config.dir=/export/crawlspace/kryptonite/hod/current/conf
>  56 #hod.server=local
>  57
>  58 #cluster.domain=inktomisearch.com
>  59
>  60 #log.file=
>  61
>  62 #yinst.cluster=kryptonite
> 
> and I run the scripts/pig.pl
> 
> it shows that:
> 
> paradise@shixing:~/hadoop-v2/types-stable-1$ scripts/pig.pl I 
> can't find HOD configuration for , hopefully you weren't 
> planning on using HOD.
> 2008-10-16 21:57:05,483 [main] INFO  
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine
>  - Connecting to hadoop file system at: file:///
> 2008-10-16 21:57:05,680 [main] INFO  
> org.apache.hadoop.metrics.jvm.JvmMetrics - Initializing JVM 
> Metrics with processName=JobTracker, sessionId=
> grunt> ls
> file:/home/paradise/hadoop-v2/types-stable-1/bin    <dir>
> ..
> 
> why pig still use the local filesystem? not hadoop?
> 
> How can I run it on hadoop?
> 
>  
>  
>  
>