spark 编译遇到的错误及解决办法

Posted O_Din

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spark 编译遇到的错误及解决办法相关的知识,希望对你有一定的参考价值。

[INFO] Spark Project Parent POM ........................... SUCCESS [ 17.129 s]
[INFO] Spark Project Tags ................................. SUCCESS [ 29.191 s]
[INFO] Spark Project Sketch ............................... SUCCESS [ 14.014 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 26.398 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 10.232 s]
[INFO] Spark Project Unsafe ............................... SUCCESS [ 21.923 s]
[INFO] Spark Project Launcher ............................. SUCCESS [ 44.617 s]
[INFO] Spark Project Core ................................. FAILURE [21:05 min]
[INFO] Spark Project GraphX ............................... SKIPPED
[INFO] Spark Project Streaming ............................ SKIPPED
[INFO] Spark Project Catalyst ............................. SKIPPED
[INFO] Spark Project SQL .................................. SKIPPED
[INFO] Spark Project ML Local Library ..................... SKIPPED
[INFO] Spark Project ML Library ........................... SKIPPED
[INFO] Spark Project Tools ................................ SKIPPED
[INFO] Spark Project Hive ................................. SKIPPED
[INFO] Spark Project REPL ................................. SKIPPED
[INFO] Spark Project YARN Shuffle Service ................. SKIPPED
[INFO] Spark Project YARN ................................. SKIPPED
[INFO] Spark Project Assembly ............................. SKIPPED
[INFO] Spark Project External Flume Sink .................. SKIPPED
[INFO] Spark Project External Flume ....................... SKIPPED
[INFO] Spark Project External Flume Assembly .............. SKIPPED
[INFO] Spark Integration for Kafka 0.8 .................... SKIPPED
[INFO] Spark Project Examples ............................. SKIPPED
[INFO] Spark Project External Kafka Assembly .............. SKIPPED
[INFO] Spark Integration for Kafka 0.10 ................... SKIPPED
[INFO] Spark Integration for Kafka 0.10 Assembly .......... SKIPPED
[INFO] Kafka 0.10 Source for Structured Streaming ......... SKIPPED
[INFO] Spark Project Java 8 Tests ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24:09 min
[INFO] Finished at: 2017-01-20T23:24:49-08:00
[INFO] Final Memory: 49M/194M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:testCompile (scala-test-compile-first) on project spark-core_2.11: Execution scala-test-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:testCompile 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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :spark-core_2.11

解决方法:在build前加入代码:

./dev/change-scala-version.sh 2.11

 

以上是关于spark 编译遇到的错误及解决办法的主要内容,如果未能解决你的问题,请参考以下文章

使用Maven编译项目遇到——“maven编码gbk的不可映射字符”解决办法

使用Maven编译项目遇到——“maven编码gbk的不可映射字符”解决办法

PHP安装编译错误及解决办法

Hexo 搭建博客 本地运行 常见报错及解决办法

django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE的解决办法(转)(代码片段

django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE的解决办法(转)(代码片段