请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师您好!我在编译spark源码时执行报错,怎么处理?

错误内容如下:
[hadoop@hadoop001 spark-2.1.0]$ ./build/mvn -Pyarn -Phadoop-2.6 -Phive -Phive-thriftserver -Dhadoop.version=2.6.0-cdh5.7.0 -DskipTests clean package
exec: curl --progress-bar -L https://downloads.typesafe.com/zinc/0.3.9/zinc-0.3.9.tgz
curl: (6) Couldn’t resolve host ‘downloads.typesafe.com

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
exec: curl --progress-bar -L https://downloads.typesafe.com/scala/2.11.8/scala-2.11.8.tgz
curl: (6) Couldn’t resolve host ‘downloads.typesafe.com

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
./build/mvn: line 119: cd: /home/hadoop/source/spark-2.1.0/build/scala-2.11.8/bin/…/lib: No such file or directory
./build/mvn: line 120: cd: /home/hadoop/source/spark-2.1.0/build/scala-2.11.8/bin/…/lib: No such file or directory
./build/mvn: line 143: /home/hadoop/source/spark-2.1.0/build/zinc-0.3.9/bin/zinc: No such file or directory
./build/mvn: line 149: /home/hadoop/source/spark-2.1.0/build/zinc-0.3.9/bin/zinc: No such file or directory
Using mvn from path: /home/hadoop/app/apache-maven-3.3.9/bin/mvn
[INFO] Scanning for projects…
Downloading: https://repo1.maven.org/maven2/org/apache/apache/14/apache-14.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.apache.spark:spark-parent_2.11:2.1.0: Could not transfer artifact org.apache:apache:pom:14 from/to central (https://repo1.maven.org/maven2): repo1.maven.org: Name or service not known and ‘parent.relativePath’ points at wrong local POM @ line 22, column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.spark:spark-parent_2.11:2.1.0 (/home/hadoop/source/spark-2.1.0/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.apache.spark:spark-parent_2.11:2.1.0: Could not transfer artifact org.apache:apache:pom:14 from/to central (https://repo1.maven.org/maven2): repo1.maven.org: Name or service not known and ‘parent.relativePath’ points at wrong local POM @ line 22, column 11: Unknown host repo1.maven.org: Name or service not known -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
[hadoop@hadoop001 spark-2.1.0]$

正在回答

1回答

网络不行,都连不上仓库,换个好的网络

0 回复 有任何疑惑可以回复我~
  • 提问者 陈素素 #1
    非常感谢!
    回复 有任何疑惑可以回复我~ 2019-03-26 15:51:17
  • 提问者 陈素素 #2
    老师,我在网络好的地方也同样报这样的错误啊,怎么处理呢?
    回复 有任何疑惑可以回复我~ 2019-04-01 16:10:14
  • 提问者 陈素素 回复 Michael_PK #3
    奥。好的,那我再试试,谢谢老师
    回复 有任何疑惑可以回复我~ 2019-04-01 16:29:39
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信