hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Roelofs <roel...@yahoo-inc.com>
Subject Re: HOW to COMPILE HADOOP
Date Fri, 02 Jul 2010 17:59:55 GMT
> Can you please explain it further. So, if i add a new java file in suppose,
> src\mapred\org\apache\hadoop\mapred\test.java. than how am i suppose to
> build it? just use ant build.xml ???

build.xml basically has wildcard targets, so adding a *.java file to an
existing source directory will automatically build it (e.g., via "ant
mvn-install").

> And if i change suppose src\mapred\org\apache\hadoop\mapred/TaskTracker.java
> file than how am i suppose to build ?

Same way.  It checks (lots of) dependencies, but it will rebuild only the
things that are newer than the corresponding output files.  You'll see
"Compiling 1 file" (or something like that) in the output.

Greg

Mime
View raw message