我仅尝试构建spark核心模块。我运行以下命令:
build/mvn package -DskipTests -pl core
doc
但是我遇到以下错误:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 50.209 s
[INFO] Finished at: 2019-03-23T11:05:52+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile (scala-compile-first) on project spark-core_2.11: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:compile failed.: CompileFailed -> [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/PluginExecutionException
/.../spark/build/zinc-0.3.15/bin/nailgun: line 50: /.../spark/build/zinc-0.3.15/bin/ng/linux32/ng: cannot execute binary file: Exec format error
我读到锌需要杀死,所以我尝试了关机命令
build/zinc-<version>/bin/zinc -shutdown
doc
但会导致相同的错误:
/.../spark/build/zinc-0.3.15/bin/nailgun: line 50: /.../spark/build/zinc-0.3.15/bin/ng/linux32/ng: cannot execute binary file: Exec format error
我尝试手动杀死它(通过kill -9 <pid of zinc from ps -ef>
),然后重新运行mvn构建,但是会导致相同的错误。
我在Ubuntu机器上构建。任何信息将不胜感激。谢谢!