2017-02-15 86 views
0

我从https://github.com/apache/spark/tree/master/下载了示例Spark代码。我做了mvn软件包调用。它跑了很长时间。火花示例不是建筑物

但是,当我在spark-examples_2.1.1文件夹中运行“mvn install”时,出现下面的错误。任何帮助如何获得这个项目的建设和调试?

[INFO] Building Spark Project Examples 2.2.0-SNAPSHOT 
[INFO] 
------------------------------------------------------------------------ 
[WARNING] The POM for 
org.apache.spark:spark-mllib_2.11:jar:2.2.0-SNAPSHOT is missing, no 
dependency information available [WARNING] The POM for 
org.apache.spark:spark-hive_2.11:jar:2.2.0-SNAPSHOT is missing, no 
dependency information available [WARNING] The POM for 
org.apache.spark:spark-streaming-flume_2.11:jar:2.2.0-SNAPSHOT is 
missing, no dependency information available [WARNING] The POM for 
org.apache.spark:spark-streaming-kafka-0-8_2.11:jar:2.2.0-SNAPSHOT is 
missing, no dependency information available [INFO] 
------------------------------------------------------------------------ 
[INFO] BUILD FAILURE [INFO] 
------------------------------------------------------------------------ 
[INFO] Total time: 0.864 s [INFO] Finished at: 
2017-02-15T18:02:07-05:00 [INFO] Final Memory: 17M/303M [INFO] 
------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project spark-examples_2.11: Could 
not resolve dependencies for project 
org.apache.spark:spark-examples_2.11:jar:2.2.0-SNAPSHOT: The following 
artifacts could not be resolved: 
org.apache.spark:spark-mllib_2.11:jar:2.2.0-SNAPSHOT, 
org.apache.spark:spark-hive_2.11:jar:2.2.0-SNAPSHOT, 
org.apache.spark:spark-streaming-flume_2.11:jar:2.2.0-SNAPSHOT, 
org.apache.spark:spark-streaming-kafka-0-8_2.11:jar:2.2.0-SNAPSHOT: 
Could not find artifact 
org.apache.spark:spark-mllib_2.11:jar:2.2.0-SNAPSHOT -> [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/DependencyResolutionException 

Process finished with exit code 1 

回答

0

好的,我通过了这个错误信息。将我的Maven版本升级到最新版本让我超越了其他构建问题。