Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> how to build hadoop in Linux


Copy link to this message
-
Re: how to build hadoop in Linux
How about compile-core-native ?

On Sat, Jan 1, 2011 at 11:21 AM, Da Zheng <[EMAIL PROTECTED]> wrote:

> Sorry, I didn't express my question 3 clearly.
> I suppose ant is very much like Makefile so there are some targets in
> build.xml
> and we can use them to build hadoop in a certain way. It's actually related
> to
> my first question. For example, if I want to just compile the code (java
> and the
> related native C code) but not build documents, which target should I
> choose?
>
> Best,
> Da
>
> On 1/1/11 10:31 AM, Ted Yu wrote:
> > 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
> >>>>
> >>
> >>
> >
>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB