You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by 李运田 <cu...@163.com> on 2014/12/19 03:09:14 UTC

use pig in eclipse

hi all.
I want to use pig in eclipse.my hadoop(yarn) cluster and eclipse are in the same linux cluster .my pig configuration  in eclipse::
 
 Properties props = new Properties();     
     props.setProperty("fs.defaultFS", "hdfs://10.210.90.*:8020");
     props.setProperty("hadoop.job.user", "hadoop");
     props.setProperty("mapreduce.framework.name", "yarn");
     props.setProperty("yarn.resourcemanager.hostname", "10.210.90.*");
     props.setProperty("yarn.resourcemanager.admin.address", "10.210.90.*:8141");
        props.setProperty("yarn.resourcemanager.address", "10.210.90.*:8050");
     props.setProperty("yarn.resourcemanager.resource-tracker.address", "10.210.90.*:8025");
     props.setProperty("yarn.resourcemanager.scheduler.address", "10.210.90.*:8030");
 
 
but,it  is not connected. I dont know how I can configure the pig in eclipse?
can you help me? please

Re: Re: use pig in eclipse

Posted by Daniel Dai <da...@hortonworks.com>.
You will need to add hadoop23 shims instead of hadoop20 shims in your
eclipse build path.

On Sun, Dec 21, 2014 at 5:58 PM, 李运田 <cu...@163.com> wrote:

> befor I copy  the hdfs-site.xml,mapred-site.xml and yarn-site.xml of the
> cluster configuration and put that in your eclipse classpath I get the
> error “core.xml not found.....”
> after I copy I get  another  error “JobControl (not using hadoop 0.20 ?)”
> I dont know why?    do you have done the connection
>
>
>
>
>
>
>
>
> At 2014-12-20 01:47:08, "Rohini Palaniswamy" <ro...@gmail.com>
> wrote:
> >You don't have to do that. You just need to copy the hdfs-site.xml,
> >mapred-site.xml and yarn-site.xml of the cluster configuration and put
> that
> >in your eclipse classpath.
> >
> >On Thu, Dec 18, 2014 at 6:09 PM, 李运田 <cu...@163.com> wrote:
> >>
> >> hi all.
> >> I want to use pig in eclipse.my hadoop(yarn) cluster and eclipse are in
> >> the same linux cluster .my pig configuration  in eclipse::
> >>
> >>  Properties props = new Properties();
> >>      props.setProperty("fs.defaultFS", "hdfs://10.210.90.*:8020");
> >>      props.setProperty("hadoop.job.user", "hadoop");
> >>      props.setProperty("mapreduce.framework.name", "yarn");
> >>      props.setProperty("yarn.resourcemanager.hostname", "10.210.90.*");
> >>      props.setProperty("yarn.resourcemanager.admin.address",
> >> "10.210.90.*:8141");
> >>         props.setProperty("yarn.resourcemanager.address",
> >> "10.210.90.*:8050");
> >>      props.setProperty("yarn.resourcemanager.resource-tracker.address",
> >> "10.210.90.*:8025");
> >>      props.setProperty("yarn.resourcemanager.scheduler.address",
> >> "10.210.90.*:8030");
> >>
> >>
> >> but,it  is not connected. I dont know how I can configure the pig in
> >> eclipse?
> >> can you help me? please
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re:Re: use pig in eclipse

Posted by 李运田 <cu...@163.com>.
befor I copy  the hdfs-site.xml,mapred-site.xml and yarn-site.xml of the cluster configuration and put that in your eclipse classpath I get the error “core.xml not found.....”
after I copy I get  another  error “JobControl (not using hadoop 0.20 ?)”  I dont know why?    do you have done the connection








At 2014-12-20 01:47:08, "Rohini Palaniswamy" <ro...@gmail.com> wrote:
>You don't have to do that. You just need to copy the hdfs-site.xml,
>mapred-site.xml and yarn-site.xml of the cluster configuration and put that
>in your eclipse classpath.
>
>On Thu, Dec 18, 2014 at 6:09 PM, 李运田 <cu...@163.com> wrote:
>>
>> hi all.
>> I want to use pig in eclipse.my hadoop(yarn) cluster and eclipse are in
>> the same linux cluster .my pig configuration  in eclipse::
>>
>>  Properties props = new Properties();
>>      props.setProperty("fs.defaultFS", "hdfs://10.210.90.*:8020");
>>      props.setProperty("hadoop.job.user", "hadoop");
>>      props.setProperty("mapreduce.framework.name", "yarn");
>>      props.setProperty("yarn.resourcemanager.hostname", "10.210.90.*");
>>      props.setProperty("yarn.resourcemanager.admin.address",
>> "10.210.90.*:8141");
>>         props.setProperty("yarn.resourcemanager.address",
>> "10.210.90.*:8050");
>>      props.setProperty("yarn.resourcemanager.resource-tracker.address",
>> "10.210.90.*:8025");
>>      props.setProperty("yarn.resourcemanager.scheduler.address",
>> "10.210.90.*:8030");
>>
>>
>> but,it  is not connected. I dont know how I can configure the pig in
>> eclipse?
>> can you help me? please

Re: use pig in eclipse

Posted by Rohini Palaniswamy <ro...@gmail.com>.
You don't have to do that. You just need to copy the hdfs-site.xml,
mapred-site.xml and yarn-site.xml of the cluster configuration and put that
in your eclipse classpath.

On Thu, Dec 18, 2014 at 6:09 PM, 李运田 <cu...@163.com> wrote:
>
> hi all.
> I want to use pig in eclipse.my hadoop(yarn) cluster and eclipse are in
> the same linux cluster .my pig configuration  in eclipse::
>
>  Properties props = new Properties();
>      props.setProperty("fs.defaultFS", "hdfs://10.210.90.*:8020");
>      props.setProperty("hadoop.job.user", "hadoop");
>      props.setProperty("mapreduce.framework.name", "yarn");
>      props.setProperty("yarn.resourcemanager.hostname", "10.210.90.*");
>      props.setProperty("yarn.resourcemanager.admin.address",
> "10.210.90.*:8141");
>         props.setProperty("yarn.resourcemanager.address",
> "10.210.90.*:8050");
>      props.setProperty("yarn.resourcemanager.resource-tracker.address",
> "10.210.90.*:8025");
>      props.setProperty("yarn.resourcemanager.scheduler.address",
> "10.210.90.*:8030");
>
>
> but,it  is not connected. I dont know how I can configure the pig in
> eclipse?
> can you help me? please