You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@hadoop.apache.org by goutham patnaik <go...@gmail.com> on 2010/10/15 22:35:38 UTC

building mapreduce project on eclipse

i checked out (from http://svn.apache.org/repos/asf/hadoop/mapreduce/trunk) the
mapreduce project into eclipse. Following the instructions from the hadoop
screencast (http://vimeo.com/4193623) and the hadoop eclipse setup
instructions (http://wiki.apache.org/hadoop/EclipseEnvironment), i did an
ant build with the following targets selected -

clean
compile-mapred-test
eclipse-files

The ant build and the corresponding Build Project were successful, but
eclipse still doesnt recognize classes / libraries from the hadoop-common
project - which i also checked out and built (successfully). is there a way
to include the hadoop-common project inside the mapreduce project ?

Also, im looking to contribute to the hadoop project in the near future - do
most committers out there checkout from and use eclipse for this ? or is
there a more efficient way you've found to build your hadoop projects ?


Thanks in advance


Goutham

Re: building mapreduce project on eclipse

Posted by goutham patnaik <go...@gmail.com>.
Thanks Eli - that seemed to have worked


Goutham

On Fri, Oct 15, 2010 at 1:52 PM, Eli Collins <el...@cloudera.com> wrote:

> Hey Goutham,
>
> Add separate common, hdfs and mr projects to your workspace. Then for
> the hdfs and mapreduce projects, select Build Path -> Configure Build
> Path, in the Projects tab of the Java Build Path add dependencies on
> the other projects. hdfs should depend on common, and mapreduce should
> depend on hdfs and common.
>
> Thanks,
> Eli
>
> On Fri, Oct 15, 2010 at 1:35 PM, goutham patnaik
> <go...@gmail.com> wrote:
> > i checked out (from
> http://svn.apache.org/repos/asf/hadoop/mapreduce/trunk) the
> > mapreduce project into eclipse. Following the instructions from the
> hadoop
> > screencast (http://vimeo.com/4193623) and the hadoop eclipse setup
> > instructions (http://wiki.apache.org/hadoop/EclipseEnvironment), i did
> an
> > ant build with the following targets selected -
> >
> > clean
> > compile-mapred-test
> > eclipse-files
> >
> > The ant build and the corresponding Build Project were successful, but
> > eclipse still doesnt recognize classes / libraries from the hadoop-common
> > project - which i also checked out and built (successfully). is there a
> way
> > to include the hadoop-common project inside the mapreduce project ?
> >
> > Also, im looking to contribute to the hadoop project in the near future -
> do
> > most committers out there checkout from and use eclipse for this ? or is
> > there a more efficient way you've found to build your hadoop projects ?
> >
> >
> > Thanks in advance
> >
> >
> > Goutham
> >
>

Re: building mapreduce project on eclipse

Posted by Eli Collins <el...@cloudera.com>.
Hey Goutham,

Add separate common, hdfs and mr projects to your workspace. Then for
the hdfs and mapreduce projects, select Build Path -> Configure Build
Path, in the Projects tab of the Java Build Path add dependencies on
the other projects. hdfs should depend on common, and mapreduce should
depend on hdfs and common.

Thanks,
Eli

On Fri, Oct 15, 2010 at 1:35 PM, goutham patnaik
<go...@gmail.com> wrote:
> i checked out (from http://svn.apache.org/repos/asf/hadoop/mapreduce/trunk) the
> mapreduce project into eclipse. Following the instructions from the hadoop
> screencast (http://vimeo.com/4193623) and the hadoop eclipse setup
> instructions (http://wiki.apache.org/hadoop/EclipseEnvironment), i did an
> ant build with the following targets selected -
>
> clean
> compile-mapred-test
> eclipse-files
>
> The ant build and the corresponding Build Project were successful, but
> eclipse still doesnt recognize classes / libraries from the hadoop-common
> project - which i also checked out and built (successfully). is there a way
> to include the hadoop-common project inside the mapreduce project ?
>
> Also, im looking to contribute to the hadoop project in the near future - do
> most committers out there checkout from and use eclipse for this ? or is
> there a more efficient way you've found to build your hadoop projects ?
>
>
> Thanks in advance
>
>
> Goutham
>