After setting the following option, I can get a successful build. " export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m" "
If we have to change the default setting to get a successful build, then we should document somewhere as a pre-requirement for building drill. On Thu, Oct 29, 2015 at 4:39 PM, Jinfeng Ni <[email protected]> wrote: > Hi, > > I tried the latest Drill master branch (commit id : > 1d067d26b1ba510f4a51489d62d2a6d0480a473c) with "mvn clean install > -DskipTests" on my Mac. However, it failed at Packaging and > Distribution Assembly. Has anyone seen this before? > > > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Drill Root POM .............................. SUCCESS [ 4.706 > s] > [INFO] tools/Parent Pom ................................... SUCCESS [ 0.580 > s] > [INFO] tools/freemarker codegen tooling ................... SUCCESS [ 4.553 > s] > [INFO] Drill Protocol ..................................... SUCCESS [ 5.834 > s] > [INFO] Common (Logical Plan, Base expressions) ............ SUCCESS [ 8.067 > s] > [INFO] contrib/Parent Pom ................................. SUCCESS [ 0.581 > s] > [INFO] contrib/data/Parent Pom ............................ SUCCESS [ 0.433 > s] > [INFO] contrib/data/tpch-sample-data ...................... SUCCESS [ 2.903 > s] > [INFO] exec/Parent Pom .................................... SUCCESS [ 0.582 > s] > [INFO] exec/Java Execution Engine ......................... SUCCESS [01:07 > min] > [INFO] exec/JDBC Driver using dependencies ................ SUCCESS [ 8.263 > s] > [INFO] JDBC JAR with all dependencies ..................... SUCCESS [ 19.962 > s] > [INFO] contrib/mongo-storage-plugin ....................... SUCCESS [ 4.360 > s] > [INFO] contrib/hbase-storage-plugin ....................... SUCCESS [ 8.317 > s] > [INFO] contrib/jdbc-storage-plugin ........................ SUCCESS [ 4.042 > s] > [INFO] contrib/hive-storage-plugin/Parent Pom ............. SUCCESS [ 0.362 > s] > [INFO] contrib/hive-storage-plugin/hive-exec-shaded ....... SUCCESS [ 16.286 > s] > [INFO] contrib/hive-storage-plugin/core ................... SUCCESS [ 6.763 > s] > [INFO] contrib/drill-gis-plugin ........................... SUCCESS [ 4.465 > s] > [INFO] Packaging and Distribution Assembly ................ SKIPPED > [INFO] contrib/sqlline .................................... SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 02:56 min > [INFO] Finished at: 2015-10-29T16:00:05-07:00 > [INFO] Final Memory: 139M/4020M > [INFO] > ------------------------------------------------------------------------ > [ERROR] PermGen space -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with > the -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [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 > --------------------------------------------------- > constituent[0]: > file:/Applications/apache-maven-3.2.3/lib/aether-api-0.9.0.M2.jar > constituent[1]: > file:/Applications/apache-maven-3.2.3/lib/aether-connector-wagon-0.9.0.M2.jar > constituent[2]: > file:/Applications/apache-maven-3.2.3/lib/aether-impl-0.9.0.M2.jar > constituent[3]: > file:/Applications/apache-maven-3.2.3/lib/aether-spi-0.9.0.M2.jar > constituent[4]: > file:/Applications/apache-maven-3.2.3/lib/aether-util-0.9.0.M2.jar > constituent[5]: file:/Applications/apache-maven-3.2.3/lib/aopalliance-1.0.jar > constituent[6]: file:/Applications/apache-maven-3.2.3/lib/cdi-api-1.0.jar > constituent[7]: file:/Applications/apache-maven-3.2.3/lib/commons-cli-1.2.jar > constituent[8]: file:/Applications/apache-maven-3.2.3/lib/commons-io-2.2.jar > constituent[9]: file:/Applications/apache-maven-3.2.3/lib/commons-lang-2.6.jar > constituent[10]: file:/Applications/apache-maven-3.2.3/lib/guava-14.0.1.jar > constituent[11]: file:/Applications/apache-maven-3.2.3/lib/javax.inject-1.jar > constituent[12]: file:/Applications/apache-maven-3.2.3/lib/jsoup-1.7.2.jar > constituent[13]: file:/Applications/apache-maven-3.2.3/lib/jsr250-api-1.0.jar > constituent[14]: > file:/Applications/apache-maven-3.2.3/lib/maven-aether-provider-3.2.3.jar > constituent[15]: > file:/Applications/apache-maven-3.2.3/lib/maven-artifact-3.2.3.jar > constituent[16]: > file:/Applications/apache-maven-3.2.3/lib/maven-compat-3.2.3.jar > constituent[17]: > file:/Applications/apache-maven-3.2.3/lib/maven-core-3.2.3.jar > constituent[18]: > file:/Applications/apache-maven-3.2.3/lib/maven-embedder-3.2.3.jar > constituent[19]: > file:/Applications/apache-maven-3.2.3/lib/maven-model-3.2.3.jar > constituent[20]: > file:/Applications/apache-maven-3.2.3/lib/maven-model-builder-3.2.3.jar > constituent[21]: > file:/Applications/apache-maven-3.2.3/lib/maven-plugin-api-3.2.3.jar > constituent[22]: > file:/Applications/apache-maven-3.2.3/lib/maven-repository-metadata-3.2.3.jar > constituent[23]: > file:/Applications/apache-maven-3.2.3/lib/maven-settings-3.2.3.jar > constituent[24]: > file:/Applications/apache-maven-3.2.3/lib/maven-settings-builder-3.2.3.jar > constituent[25]: > file:/Applications/apache-maven-3.2.3/lib/org.eclipse.sisu.inject-0.0.0.M5.jar > constituent[26]: > file:/Applications/apache-maven-3.2.3/lib/org.eclipse.sisu.plexus-0.0.0.M5.jar > constituent[27]: > file:/Applications/apache-maven-3.2.3/lib/plexus-cipher-1.7.jar > constituent[28]: > file:/Applications/apache-maven-3.2.3/lib/plexus-component-annotations-1.5.5.jar > constituent[29]: > file:/Applications/apache-maven-3.2.3/lib/plexus-interpolation-1.19.jar > constituent[30]: > file:/Applications/apache-maven-3.2.3/lib/plexus-sec-dispatcher-1.3.jar > constituent[31]: > file:/Applications/apache-maven-3.2.3/lib/plexus-utils-3.0.17.jar > constituent[32]: > file:/Applications/apache-maven-3.2.3/lib/sisu-guice-3.1.3-no_aop.jar > constituent[33]: file:/Applications/apache-maven-3.2.3/lib/slf4j-api-1.7.5.jar > constituent[34]: > file:/Applications/apache-maven-3.2.3/lib/slf4j-simple-1.7.5.jar > constituent[35]: file:/Applications/apache-maven-3.2.3/lib/wagon-file-2.6.jar > constituent[36]: > file:/Applications/apache-maven-3.2.3/lib/wagon-http-2.6-shaded.jar > constituent[37]: > file:/Applications/apache-maven-3.2.3/lib/wagon-http-shared-2.6.jar > constituent[38]: > file:/Applications/apache-maven-3.2.3/lib/wagon-provider-api-2.6.jar > constituent[39]: file:/Applications/apache-maven-3.2.3/conf/logging/ > --------------------------------------------------- > Exception in thread "main" > Exception: java.lang.OutOfMemoryError thrown from the > UncaughtExceptionHandler in thread "main"
