Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hadoop, mail # user - how to build hadoop in Linux


+
Da Zheng 2010-12-31, 06:08
+
Ranjit Mathew 2011-01-03, 04:41
+
Konstantin Boudnik 2010-12-31, 06:36
+
Harsh J 2011-01-02, 20:46
+
Da Zheng 2011-01-01, 14:53
Copy link to this message
-
Re: how to build hadoop in Linux
Ted Yu 2011-01-01, 15:31
For question #3, this should be helpful:
http://ant.apache.org/manual/tasksoverview.html#compile

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
> rebuild
> 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?
>
> Best,
> Da
>
> 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
> the
> >> 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
> >>
> http://bigdata.wordpress.com/2010/05/27/hadoop-cookbook-3-how-to-build-your-own-hadoop-distribution/
> .
> >> 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]
> /home/zhengda/apache-forrest-0.8/main/targets/validate.xml:158:
> >> java.lang.NullPointerException
> >> What does this error mean? it seems apache forrest is used to create
> hadoop
> >> 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
> use
> >> 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
> >>
>
>
+
Da Zheng 2011-01-01, 19:21
+
Ted Yu 2011-01-01, 19:26
+
Da Zheng 2011-01-01, 21:39