hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Lipcon <t...@cloudera.com>
Subject Re: .23 compile times
Date Wed, 15 Feb 2012 18:47:32 GMT
Hi Sriram,

I also do -Dmaven.skip.javadoc=true usually and that cuts out a couple
minutes. Unless you need a tarball, you can also drop -Ptar.

When I'm just making quick changes confined to the java code, I
usually just use "mvn -Dskiptests install" from within the hdfs
project, then manually cp the resulting
target/hadoop-hdfs-0.24.0-SNAPSHOT.jar into my install
dir/share/hadoop/hdfs. Much faster than the full rebuild.

-Todd

On Wed, Feb 15, 2012 at 8:52 AM, Harsh J <harsh@cloudera.com> wrote:
> Sriram,
>
> My package command didn't take as long with the same command -- where
> do you see it getting stuck at most of the times? Which particular
> target (right term?) seems to take the highest time to complete?
>
> On Wed, Feb 15, 2012 at 12:31 AM, Sriram Rao <sriramsrao@gmail.com> wrote:
>> Folks,
>>
>> The build takes forever:
>>
>>  mvn package -Pdist -DskipTests -Dtar
>>
>> ....
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESS
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 6:25.399s
>> [INFO] Finished at: Tue Feb 14 10:54:18 PST 2012
>> [INFO] Final Memory: 56M/123M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> This is on a mac with 8GB RAM.  (The above case involved 0-lines of code
>> change; just making sure I had everything built!).
>>
>> Is there a faster way to get the thing to build?
>>
>> Sriram
>
>
>
> --
> Harsh J
> Customer Ops. Engineer
> Cloudera | http://tiny.cloudera.com/about



-- 
Todd Lipcon
Software Engineer, Cloudera

Mime
View raw message