You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by ashish pareek <pa...@gmail.com> on 2009/07/27 11:28:20 UTC

How to Build Hadoop code in eclipse

Hi Everybody,

                  Is there any easy and elaborate page where its explained
how to build hadoop code. I followed http://*wiki*.apache.org/*hadoop*/*
Eclipse*Environment instruction and even video but i getting error :

BUILD FAILED : java.net.UnknownHostException : repo2.maven.org

But when accessed through browser this site is working .

I browse through proxy and I have set up user name ans password correctly.

Can any one suggest the possible soultion ?

Thanks in advance.

Regards,
Ashish

Re: How to Build Hadoop code in eclipse

Posted by David Been <da...@gmail.com>.
Thanks for that link.   Eclipse fails miserably if left to compile on
its own, but from the instructions (your link) i added the View ->
Ant, added the root level build.xml and ran compile, which appears to
be what you are doing.
It failed a couple times connecting to sites, but repeatedly running
it eventually completed.

I was manually resolving the 4000+ compile errors by adding
appropriate jars from my eclipse plugins dir (I added 20+ jars and
still had 264 errors left).

Curious thing is TestThriftfs doesn't compile because it doesn't have
them imports:

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hdfs.DistributedFileSystem;
import org.apache.hadoop.hdfs.MiniDFSCluster;

there is no way it would ever compile no matter it be ant or eclipse.
it is probably excluded from the ant build i gather.

I finally d/led the binary version of 0.20 and that is working.
but in the eclipse build i do not find hadoop.sh ....

On Mon, Jul 27, 2009 at 2:28 AM, ashish pareek<pa...@gmail.com> wrote:
> Hi Everybody,
>
>                  Is there any easy and elaborate page where its explained
> how to build hadoop code. I followed http://*wiki*.apache.org/*hadoop*/*
> Eclipse*Environment instruction and even video but i getting error :
>
> BUILD FAILED : java.net.UnknownHostException : repo2.maven.org
>
> But when accessed through browser this site is working .
>
> I browse through proxy and I have set up user name ans password correctly.
>
> Can any one suggest the possible soultion ?
>
> Thanks in advance.
>
> Regards,
> Ashish
>

Re: How to Build Hadoop code in eclipse

Posted by Harsh J <qw...@gmail.com>.
Running the `ant eclipse-files` target will give you nearly usable
.project and .classpath files. Import the Hadoop project into Eclipse
using these.

Or you could always checkout a stable branch/tag via SVN and go ahead
with the original wiki instructions :)

On Wed, Aug 11, 2010 at 6:02 PM, Ahmad Shahzad <as...@gmail.com> wrote:
> Hi All,
>          I wanted to ask a related question to this one. How would you set
> up hadoop on eclipse if you dont want to download it from svn, rather you
> just want to configure a stable release e.g 0.20.2 on eclipse. So, i want to
> configure a stable release on eclipse and add/change the code i want and run
> it through ant.
>
> Ahmad
>
> On Sun, Aug 8, 2010 at 4:36 AM, Saikat Kanjilal <sx...@hotmail.com> wrote:
>
>> I've been able to build the code successfully in Eclipse by using the svn
>> plugin and importing the code and using ant.  I actually followed the wiki
>> instructions and did an svn checkout inside Eclipse and was able to run all
>> of the ant targets successfully.
>>
>> Sent from my iPhone
>>
>> On Aug 7, 2010, at 6:31 PM, thinke365 <th...@gmail.com> wrote:
>>
>> >
>> > Maybe the official way to build hadoop is using hudson, the developers
>> just
>> > using vim to make their work done, without IDE such as Eclipse.
>> > In my opinion, hadoop did badly to cooperate with IDE.
>> >
>> > ashish pareek wrote:
>> >>
>> >> Hello Friends,
>> >>                   If you know solution to this problem please reply
>> back.
>> >>
>> >>
>> >> On Mon, Jul 27, 2009 at 2:58 PM, ashish pareek <pa...@gmail.com>
>> >> wrote:
>> >>
>> >>> Hi Everybody,
>> >>>
>> >>>                  Is there any easy and elaborate page where its
>> >>> explained
>> >>> how to build hadoop code. I followed http://*wiki*.
>> apache.org/*hadoop*/*
>> >>> Eclipse*Environment instruction and even video but i getting error :
>> >>>
>> >>> BUILD FAILED : java.net.UnknownHostException : repo2.maven.org
>> >>>
>> >>> But when accessed through browser this site is working .
>> >>>
>> >>> I browse through proxy and I have set up user name ans password
>> >>> correctly.
>> >>>
>> >>> Can any one suggest the possible soultion ?
>> >>>
>> >>> Thanks in advance.
>> >>>
>> >>> Regards,
>> >>> Ashish
>> >>>
>> >>>
>> >>
>> >>
>> >
>> > --
>> > View this message in context:
>> http://old.nabble.com/How-to-Build-Hadoop-code-in-eclipse-tp24676996p29377931.html
>> > Sent from the Hadoop core-dev mailing list archive at Nabble.com.
>> >
>> >
>>
>



-- 
Harsh J
www.harshj.com

Re: How to Build Hadoop code in eclipse

Posted by Ahmad Shahzad <as...@gmail.com>.
Hi All,
          I wanted to ask a related question to this one. How would you set
up hadoop on eclipse if you dont want to download it from svn, rather you
just want to configure a stable release e.g 0.20.2 on eclipse. So, i want to
configure a stable release on eclipse and add/change the code i want and run
it through ant.

Ahmad

On Sun, Aug 8, 2010 at 4:36 AM, Saikat Kanjilal <sx...@hotmail.com> wrote:

> I've been able to build the code successfully in Eclipse by using the svn
> plugin and importing the code and using ant.  I actually followed the wiki
> instructions and did an svn checkout inside Eclipse and was able to run all
> of the ant targets successfully.
>
> Sent from my iPhone
>
> On Aug 7, 2010, at 6:31 PM, thinke365 <th...@gmail.com> wrote:
>
> >
> > Maybe the official way to build hadoop is using hudson, the developers
> just
> > using vim to make their work done, without IDE such as Eclipse.
> > In my opinion, hadoop did badly to cooperate with IDE.
> >
> > ashish pareek wrote:
> >>
> >> Hello Friends,
> >>                   If you know solution to this problem please reply
> back.
> >>
> >>
> >> On Mon, Jul 27, 2009 at 2:58 PM, ashish pareek <pa...@gmail.com>
> >> wrote:
> >>
> >>> Hi Everybody,
> >>>
> >>>                  Is there any easy and elaborate page where its
> >>> explained
> >>> how to build hadoop code. I followed http://*wiki*.
> apache.org/*hadoop*/*
> >>> Eclipse*Environment instruction and even video but i getting error :
> >>>
> >>> BUILD FAILED : java.net.UnknownHostException : repo2.maven.org
> >>>
> >>> But when accessed through browser this site is working .
> >>>
> >>> I browse through proxy and I have set up user name ans password
> >>> correctly.
> >>>
> >>> Can any one suggest the possible soultion ?
> >>>
> >>> Thanks in advance.
> >>>
> >>> Regards,
> >>> Ashish
> >>>
> >>>
> >>
> >>
> >
> > --
> > View this message in context:
> http://old.nabble.com/How-to-Build-Hadoop-code-in-eclipse-tp24676996p29377931.html
> > Sent from the Hadoop core-dev mailing list archive at Nabble.com.
> >
> >
>

Re: How to Build Hadoop code in eclipse

Posted by Saikat Kanjilal <sx...@hotmail.com>.
I've been able to build the code successfully in Eclipse by using the svn plugin and importing the code and using ant.  I actually followed the wiki instructions and did an svn checkout inside Eclipse and was able to run all of the ant targets successfully.

Sent from my iPhone

On Aug 7, 2010, at 6:31 PM, thinke365 <th...@gmail.com> wrote:

> 
> Maybe the official way to build hadoop is using hudson, the developers just
> using vim to make their work done, without IDE such as Eclipse.
> In my opinion, hadoop did badly to cooperate with IDE.
> 
> ashish pareek wrote:
>> 
>> Hello Friends,
>>                   If you know solution to this problem please reply back.
>> 
>> 
>> On Mon, Jul 27, 2009 at 2:58 PM, ashish pareek <pa...@gmail.com>
>> wrote:
>> 
>>> Hi Everybody,
>>> 
>>>                  Is there any easy and elaborate page where its
>>> explained
>>> how to build hadoop code. I followed http://*wiki*.apache.org/*hadoop*/*
>>> Eclipse*Environment instruction and even video but i getting error :
>>> 
>>> BUILD FAILED : java.net.UnknownHostException : repo2.maven.org
>>> 
>>> But when accessed through browser this site is working .
>>> 
>>> I browse through proxy and I have set up user name ans password
>>> correctly.
>>> 
>>> Can any one suggest the possible soultion ?
>>> 
>>> Thanks in advance.
>>> 
>>> Regards,
>>> Ashish
>>> 
>>> 
>> 
>> 
> 
> -- 
> View this message in context: http://old.nabble.com/How-to-Build-Hadoop-code-in-eclipse-tp24676996p29377931.html
> Sent from the Hadoop core-dev mailing list archive at Nabble.com.
> 
> 

Re: How to Build Hadoop code in eclipse

Posted by thinke365 <th...@gmail.com>.
Maybe the official way to build hadoop is using hudson, the developers just
using vim to make their work done, without IDE such as Eclipse.
In my opinion, hadoop did badly to cooperate with IDE.

ashish pareek wrote:
> 
> Hello Friends,
>                    If you know solution to this problem please reply back.
> 
> 
> On Mon, Jul 27, 2009 at 2:58 PM, ashish pareek <pa...@gmail.com>
> wrote:
> 
>> Hi Everybody,
>>
>>                   Is there any easy and elaborate page where its
>> explained
>> how to build hadoop code. I followed http://*wiki*.apache.org/*hadoop*/*
>> Eclipse*Environment instruction and even video but i getting error :
>>
>> BUILD FAILED : java.net.UnknownHostException : repo2.maven.org
>>
>> But when accessed through browser this site is working .
>>
>> I browse through proxy and I have set up user name ans password
>> correctly.
>>
>> Can any one suggest the possible soultion ?
>>
>> Thanks in advance.
>>
>> Regards,
>> Ashish
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-Build-Hadoop-code-in-eclipse-tp24676996p29377931.html
Sent from the Hadoop core-dev mailing list archive at Nabble.com.


Re: How to Build Hadoop code in eclipse

Posted by ashish pareek <pa...@gmail.com>.
Hello Friends,
                   If you know solution to this problem please reply back.


On Mon, Jul 27, 2009 at 2:58 PM, ashish pareek <pa...@gmail.com> wrote:

> Hi Everybody,
>
>                   Is there any easy and elaborate page where its explained
> how to build hadoop code. I followed http://*wiki*.apache.org/*hadoop*/*
> Eclipse*Environment instruction and even video but i getting error :
>
> BUILD FAILED : java.net.UnknownHostException : repo2.maven.org
>
> But when accessed through browser this site is working .
>
> I browse through proxy and I have set up user name ans password correctly.
>
> Can any one suggest the possible soultion ?
>
> Thanks in advance.
>
> Regards,
> Ashish
>
>

Re: How to Build Hadoop code in eclipse

Posted by ashish pareek <pa...@gmail.com>.
Hello Friends,
                   If you know solution to this problem please reply back.


On Mon, Jul 27, 2009 at 2:58 PM, ashish pareek <pa...@gmail.com> wrote:

> Hi Everybody,
>
>                   Is there any easy and elaborate page where its explained
> how to build hadoop code. I followed http://*wiki*.apache.org/*hadoop*/*
> Eclipse*Environment instruction and even video but i getting error :
>
> BUILD FAILED : java.net.UnknownHostException : repo2.maven.org
>
> But when accessed through browser this site is working .
>
> I browse through proxy and I have set up user name ans password correctly.
>
> Can any one suggest the possible soultion ?
>
> Thanks in advance.
>
> Regards,
> Ashish
>
>