hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Lucene-hadoop Wiki] Trivial Update of "EclipseEnvironment" by MarkButler
Date Mon, 15 Oct 2007 14:03:39 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification.

The following page has been changed by MarkButler:
http://wiki.apache.org/lucene-hadoop/EclipseEnvironment

------------------------------------------------------------------------------
  
  === Configuring Eclipse to build Hadoop ===
  
- Building all of Hadoop in Eclipse is a little complicated because there are some DDL files
used by the tests that need to compiled first. Therefore it is necessary to configure Eclipse
to call part of the Ant script to build these, and have two build directories, one for the
Ant script, the other for Eclipse, as you need to include the classes built by Ant on the
library path and Eclipse forbids circular references.
+ If you want to build all of Hadoop in Eclipse, including contributions, then there are some
[http://lucene.apache.org/hadoop/api/org/apache/hadoop/record/package-summary.html#skip-navbar_top
DDL] files used by the tests that need to compiled first. One strategy is to configure Eclipse
to call part of the Ant script to build these, and have two build directories, one for the
Ant script, the other for Eclipse, as you need to include the classes built by Ant on the
Eclipse library path and circular references are forbidden. 
  
  In Eclipse, select Project -> Properties -> Java Build Path -> Source
  
@@ -63, +63 @@

  
  Then select Project -> Properties -> Java Build Path -> Libraries
  
- Add all the libraries in hadoop/lib and hadoop/lib/jetty-ext.
+ Add all the libraries in 
+ {{{
+ hadoop/lib
+ hadoop/lib/jetty-ext
+ }}}
  
- If you are using contrib also use hadoop/src/contrib/hbase/lib
- 
+ If you are using contrib also use 
+ {{{
+ hadoop/src/contrib/hbase/lib
+ }}}
  Then add hadoop/build/test/classes to the library path
  
  Then select Project->Properties->Builders
  
- Add a new Ant builder. Select the top level build.xml as the build file. Next on the page
with tab 
+ Add a new Ant builder. Select the top level build.xml as the build file. Next select the

- "targets", after clean specify
+ "targets" tab, after clean specify
  {{{
  compile-core-classes, compile-core test
  }}}
@@ -82, +88 @@

  }}}
  Apply these changes. Hopefully Hadoop should now build successfully in Eclipse without any
errors. 
  
- 
- 

Mime
View raw message