Here's what work for me (and seems to be working out
nicely on Jenkins). I plan to commit it this week to trunk:

export MAVEN_OPTS="-Xmx1536m -Xms256m -XX:MaxPermSize=256m"

mvn -DskipTests -Dhadoop.profile=2  \
  -Dhadoop.version=$HADOOP_VERSION  \
  -Dhbase.version=$HBASE_VERSION    \
  clean install "$@"

Thanks,
Roman.

On Sun, Dec 2, 2012 at 6:27 PM, Anatoli Fomenko <[email protected]> wrote:
> Hi Roman,
>
> I'm still getting for Flume 1.3.0:
>
> from http://archive.apache.org/dist/flume/1.3.0/apache-flume-1.3.0-bin.tar.gz:
>
> ...
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ 
> flume-ng-sdk ---
> [INFO] Compiling 6 source files to 
> git/branch-0.3.1/bigtop/output/flume/flume-1.3.0/flume-ng-sdk/target/test-classes
> ...
> [INFO] Flume NG SDK ...................................... FAILURE [12.853s]
> ...
> Exception in thread "MainThread" java.lang.OutOfMemoryError: PermGen space
>
> or from 
> http://archive.apache.org/dist/flume/1.3.0/apache-flume-1.3.0-src.tar.gz:
> ...
> [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ flume-ng-sdk ---
>
> [ERROR] PermGen space -> [Help 1]
> ...
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
>
>
> with recommended variables set on command line:
> $ echo $JAVA_OPTS
> -Xmx1536m -Xms256m -XX:MaxPermSize=256m
> $ echo $MAVEN_OPTS
>
> -Xmx1536m -Xms256m -XX:MaxPermSize=256m
>
> Any ideas what went wrong?
>
> Thank you,
> Anatoli
>
>
> ________________________________
>  From: Roman Shaposhnik <[email protected]>
> To: [email protected]; Anatoli Fomenko <[email protected]>
> Sent: Tuesday, November 27, 2012 9:08 AM
> Subject: Re: Flume 1.2.0 PermGen build problem
>
> On Tue, Nov 27, 2012 at 8:58 AM, Anatoli Fomenko <[email protected]> wrote:
>> I tried up to MAVEN_OPTS="-Xmx3G -XX:MaxPermSize=2G", same problem.introduce 
>> Python as build-time and run-time dependency for Hadoop and throughout Hadoop
>
> I'm not sure Flume 1.2.0 is worth pursuing at this point. For
> the upcoming Flume 1.3.0 here's what works for me:
>    JAVA_OPTS="-Xmx1536m -Xms256m -XX:MaxPermSize=256m"
>    MAVEN_OPTS="-Xmx1536m -Xms256m -XX:MaxPermSize=256m"
>
> Perhaps this needs to included into the do-component-build proper.
>
> Thanks,
> Roman.

Reply via email to