For question #3, this should be helpful:
On Sat, Jan 1, 2011 at 6:53 AM, Da Zheng <[EMAIL PROTECTED]> wrote:
> Happy new year!
> Thanks. After applying the patch, I can compile the code with
> ant -Dforrest.home=/home/zhengda/apache-forrest-0.8 compile-core tar
> but there is still something unclear to me:
> first, how do I compile only the java code? it takes quite a while to
> hadoop with the command above.
> secondly, after I rebuild hadoop, I get some jar files such as
> hadoop-0.20.3-dev-core.jar under the directory of build/. How do I use
> them? do
> I need to move to some specific directory?
> thirdly, what arguments I can use in ant?
> On 12/31/10 1:36 AM, Konstantin Boudnik wrote:
> > The Java5 dependency is about to go from Hadoop. See HADOOP-7072. I
> > will try to commit it first thing next year. So, wait a couple of days
> > and you'll be all right.
> > Happy New Year everyone!
> > On Thu, Dec 30, 2010 at 22:08, Da Zheng <[EMAIL PROTECTED]> wrote:
> >> Hello,
> >> I need to build hadoop in Linux as I need to make some small changes in
> >> code, but I don't know what is the simplest way to build hadoop. I
> googled it
> >> and so far I only found two places that tell how to build hadoop. One is
> >> I downloaded apache forrest, and do as it
> >> ant -Djava5.home=/usr/lib/jvm/java-1.5.0-gcj-4.4/
> >> -Dforrest.home=/home/zhengda/apache-forrest-0.8 compile-core tar
> >> and get an error:
> >> [exec] BUILD FAILED
> >> [exec]
> >> java.lang.NullPointerException
> >> What does this error mean? it seems apache forrest is used to create
> >> document and I just want to rebuild hadoop java code. Is there a way for
> me to
> >> just rebuild java code? I ran "ant", it seems to work successfully, but
> I don't
> >> know if it really compiled the code.
> >> the other place I found is to show how to build hadoop with eclipse. I
> >> macbook and I have to ssh to linux boxes to work on hadoop, so it's not
> a very
> >> good option even if it can really work.
> >> Best,
> >> Da