构建Spark 1.5.2 - Maven堆空间问题

时间:2016-12-12 13:35:56

标签: java maven apache-spark build

我正在使用make-distribution.sh脚本构建Apache Spark。它工作正常,直到spark-streaming-mqtt_2.10模块。 我的MAVEN_OPTS环境变量是:

export MAVEN_OPTS="-Xmx15g -XX:MaxPermSize=15000M -XX:ReservedCodeCacheSize=15000M"

即使分配给Maven的内存非常高,它仍然无法创建spark-streaming-mqtt-test-1.5.2.jar jar文件。

以下是错误堆栈跟踪:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (test-jar-with-dependencies) on project spark-streaming-mqtt_2.10: Failed to create assembly: Error creating assembly archive test-jar-with-dependencies: Problem creating jar: Execution exception: Java heap 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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :spark-streaming-mqtt_2.10

0 个答案:

没有答案