java在linux环境用maven编译_Linux下Maven编译spark源码时报错了

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 -rf :spark-yarn_2.10

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

表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 1024 设计师:白松林 返回首页