您好,匿名用户

Linux下Maven编译spark源码时报错了

0 投票

Linux下使用Maven编译spark源码时报了以下这个错误,知道该怎么解决

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Spark Project Parent POM ........................... SUCCESS [  9.290 s]
[INFO] Spark Project Test Tags ............................ SUCCESS [  5.538 s]
[INFO] Spark Project Launcher ............................. SUCCESS [ 21.234 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 17.278 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 10.260 s]
[INFO] Spark Project Unsafe ............................... SUCCESS [ 29.558 s]
[INFO] Spark Project Core ................................. SUCCESS [09:45 min]
[INFO] Spark Project Bagel ................................ SUCCESS [ 32.979 s]
[INFO] Spark Project GraphX ............................... SUCCESS [02:51 min]
[INFO] Spark Project Streaming ............................ SUCCESS [03:54 min]
[INFO] Spark Project Catalyst ............................. SUCCESS [04:00 min]
[INFO] Spark Project SQL .................................. SUCCESS [05:26 min]
[INFO] Spark Project ML Library ........................... SUCCESS [06:28 min]
[INFO] Spark Project Tools ................................ SUCCESS [ 34.488 s]
[INFO] Spark Project Hive ................................. SUCCESS [03:03 min]
[INFO] Spark Project Docker Integration Tests ............. SUCCESS [ 18.751 s]
[INFO] Spark Project REPL ................................. SUCCESS [01:00 min]
[INFO] Spark Project YARN Shuffle Service ................. SUCCESS [  8.247 s]
[INFO] Spark Project YARN ................................. FAILURE [06:13 min]
[INFO] Spark Project Assembly ............................. SKIPPED
[INFO] Spark Project External Twitter ..................... SKIPPED
[INFO] Spark Project External Flume Sink .................. SKIPPED
[INFO] Spark Project External Flume ....................... SKIPPED
[INFO] Spark Project External Flume Assembly .............. SKIPPED
[INFO] Spark Project External MQTT ........................ SKIPPED
[INFO] Spark Project External MQTT Assembly ............... SKIPPED
[INFO] Spark Project External ZeroMQ ...................... SKIPPED
[INFO] Spark Project External Kafka ....................... SKIPPED
[INFO] Spark Project Examples ............................. SKIPPED
[INFO] Spark Project External Kafka Assembly .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45:54 min
[INFO] Finished at: 2016-12-21T16:42:26+08:00
[INFO] Final Memory: 64M/447M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project spark-yarn_2.10: Could not resolve dependencies for project org.apache.spark:spark-yarn_2.10:jar:1.6.0: Failed to collect dependencies at org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.6.5: Failed to read artifact descriptor for org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.6.5: Could not transfer artifact org.apache.hadoop:hadoop-yarn-server-web-proxy:pom:2.6.5 from/to central (https://repo1.maven.org/maven2): repo1.maven.org: Temporary failure in name resolution: Unknown host repo1.maven.org: Temporary failure in name resolution -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project spark-yarn_2.10: Could not resolve dependencies for project org.apache.spark:spark-yarn_2.10:jar:1.6.0: Failed to collect dependencies at org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.6.5
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.spark:spark-yarn_2.10:jar:1.6.0: Failed to collect dependencies at org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.6.5
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:180)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
        ... 23 more
Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies at org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.6.5
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:291)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.6.5
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:282)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:198)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.hadoop:hadoop-yarn-server-web-proxy:pom:2.6.5 from/to central (https://repo1.maven.org/maven2): repo1.maven.org: Temporary failure in name resolution
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.hadoop:hadoop-yarn-server-web-proxy:pom:2.6.5 from/to central (https://repo1.maven.org/maven2): repo1.maven.org: Temporary failure in name resolution
        at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
Caused by: org.apache.maven.wagon.TransferFailedException: repo1.maven.org: Temporary failure in name resolution
        at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1066)
        at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:960)
Caused by: java.net.UnknownHostException: repo1.maven.org: Temporary failure in name resolution
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
[ERROR] 
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :spark-yarn_2.10

我想要的是编译一个不带Hive功能的Spakr包,试过用Spark源码自带的./make-distribution.sh编译工具编译, 但是编译出来的Spark安装包没有总是报错说缺少文件, 所以就试着用Maven来编译试试, 没想到又错误了, 第一次使用Maven, 不是很懂, 请各位前辈不吝赐教

用户头像 提问 2017年 6月15日 @ Draven 中士 (1,025 威望)
分享到:

你的回答

隐私保护: 您的邮箱仅用于发送系统通知。
请输入验证码:
    图片验证码看不清?
登录注册后不会被要求输入验证码。

提一个问题:

相关问题

0 投票
1 回复 98 阅读
0 投票
0 回复 53 阅读
用户头像 提问 2017年 4月22日 @ Taurus 下士 (983 威望)
0 投票
1 回复 111 阅读
0 投票
0 回复 203 阅读
用户头像 提问 2012年 12月1日 @ Fiora 下士 (967 威望)
0 投票
1 回复 381 阅读
用户头像 提问 2015年 2月24日 @ Malphite 中士 (1,056 威望)

欢迎来到随意问技术百科, 这是一个面向专业开发者的IT问答网站,提供途径助开发者查找IT技术方案,解决程序bug和网站运维难题等。
温馨提示:本网站禁止用户发布与IT技术无关的、粗浅的、毫无意义的或者违法国家法规的等不合理内容,谢谢支持。

欢迎访问随意问技术百科,为了给您提供更好的服务,请及时反馈您的意见。
...