hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Da Zheng <zhengda1...@gmail.com>
Subject Re: how to build hadoop in Linux
Date Sat, 01 Jan 2011 14:53:30 GMT
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?


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 <zhengda1936@gmail.com> 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

View raw message