分享

Storm on yarn 编译报错

王林红 发表于 2014-10-25 02:23:28 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 7 13650
本帖最后由 王林红 于 2014-10-25 02:26 编辑

[root@hadoop1 storm-yarn-master]# mvn package
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building storm-yarn 1.0-alpha
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/or ... ver-tests-2.4.0.pom
Downloading: https://clojars.org/repo/org/apa ... ver-tests-2.4.0.pom
Downloading: http://repository.apache.org/con ... ver-tests-2.4.0.pom
Downloading: http://version99.qos.ch/org/apac ... ver-tests-2.4.0.pom
Downloading: http://repo1.maven.org/maven2/or ... op-common-2.4.0.pom
Downloading: https://clojars.org/repo/org/apa ... op-common-2.4.0.pom
Downloading: http://repository.apache.org/con ... op-common-2.4.0.pom
Downloading: http://version99.qos.ch/org/apac ... op-common-2.4.0.pom
Downloading: http://repo1.maven.org/maven2/or ... ient-core-2.4.0.pom
Downloading: https://clojars.org/repo/org/apa ... ient-core-2.4.0.pom
Downloading: http://version99.qos.ch/org/apac ... ient-core-2.4.0.pom
Downloading: http://repo1.maven.org/maven2/or ... rn-client-2.4.0.pom
Downloading: https://clojars.org/repo/org/apa ... rn-client-2.4.0.pom
Downloading: http://version99.qos.ch/org/apac ... rn-client-2.4.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.303 s
[INFO] Finished at: 2014-10-24T02:54:05+08:00
[INFO] Final Memory: 5M/14M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project storm-yarn: Could not resolve dependencies for project com.yahoo.storm.yarn:storm-yarn:jar:1.0-alpha: Failed to collect dependencies at org.apache.hadoop:hadoop-yarn-server-tests:jar:tests:2.4.0: Failed to read artifact descriptor for org.apache.hadoop:hadoop-yarn-server-tests:jar:tests:2.4.0: Could not transfer artifact org.apache.hadoop:hadoop-yarn-server-tests:pom:2.4.0 from/to central (http://repo1.maven.org/maven2/): Failed to transfer file: http://repo1.maven.org/maven2/or ... er-tests-2.4.0.pom. Return code is: 504 , ReasonPhrase:Gateway Timeout. -> [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/confluen ... ResolutionException

各位大侠。给看看这个事什么问题啊,在编译storm  on yarn是的错误


更加详细的信息如下:
[root@hadoop1 storm-yarn-master]# mvn package -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building storm-yarn 1.0-alpha
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/or ... ver-tests-2.4.0.pom
Downloading: https://clojars.org/repo/org/apa ... ver-tests-2.4.0.pom
Oct 24, 2014 3:01:53 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:01:53 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Oct 24, 2014 3:01:53 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:01:53 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Oct 24, 2014 3:01:53 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:01:53 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Downloading: http://repository.apache.org/con ... ver-tests-2.4.0.pom
Downloading: http://version99.qos.ch/org/apac ... ver-tests-2.4.0.pom
Downloading: http://repo1.maven.org/maven2/or ... op-common-2.4.0.pom
Downloading: https://clojars.org/repo/org/apa ... op-common-2.4.0.pom
Oct 24, 2014 3:01:59 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:01:59 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Oct 24, 2014 3:01:59 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:01:59 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Oct 24, 2014 3:01:59 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:01:59 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Downloading: http://repository.apache.org/con ... op-common-2.4.0.pom
Downloading: http://version99.qos.ch/org/apac ... op-common-2.4.0.pom
Downloading: http://repo1.maven.org/maven2/or ... ient-core-2.4.0.pom
Downloading: https://clojars.org/repo/org/apa ... ient-core-2.4.0.pom
Oct 24, 2014 3:02:04 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:02:04 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Oct 24, 2014 3:02:04 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:02:04 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Oct 24, 2014 3:02:04 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:02:04 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Downloading: http://version99.qos.ch/org/apac ... ient-core-2.4.0.pom
Downloading: http://repo1.maven.org/maven2/or ... rn-client-2.4.0.pom
Downloading: https://clojars.org/repo/org/apa ... rn-client-2.4.0.pom
Oct 24, 2014 3:02:09 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:02:09 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Oct 24, 2014 3:02:09 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:02:09 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Oct 24, 2014 3:02:09 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request: Network is unreachable
Oct 24, 2014 3:02:09 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request
Downloading: http://version99.qos.ch/org/apac ... rn-client-2.4.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.093 s
[INFO] Finished at: 2014-10-24T03:02:09+08:00
[INFO] Final Memory: 5M/16M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project storm-yarn: Could not resolve dependencies for project com.yahoo.storm.yarn:storm-yarn:jar:1.0-alpha: Failed to collect dependencies at org.apache.hadoop:hadoop-yarn-server-tests:jar:tests:2.4.0: Failed to read artifact descriptor for org.apache.hadoop:hadoop-yarn-server-tests:jar:tests:2.4.0: Could not transfer artifact org.apache.hadoop:hadoop-yarn-server-tests:pom:2.4.0 from/to central (http://repo1.maven.org/maven2/): Failed to transfer file: http://repo1.maven.org/maven2/or ... er-tests-2.4.0.pom. Return code is: 504 , ReasonPhrase:Gateway Timeout. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project storm-yarn: Could not resolve dependencies for project com.yahoo.storm.yarn:storm-yarn:jar:1.0-alpha: Failed to collect dependencies at org.apache.hadoop:hadoop-yarn-server-tests:jar:tests:2.4.0
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.yahoo.storm.yarn:storm-yarn:jar:1.0-alpha: Failed to collect dependencies at org.apache.hadoop:hadoop-yarn-server-tests:jar:tests:2.4.0
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:167)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
        ... 22 more
Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies at org.apache.hadoop:hadoop-yarn-server-tests:jar:tests:2.4.0
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:292)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:317)
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:159)
        ... 23 more
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.hadoop:hadoop-yarn-server-tests:jar:tests:2.4.0
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:349)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:231)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:461)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:261)
        ... 25 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.hadoop:hadoop-yarn-server-tests:pom:2.4.0 from/to central (http://repo1.maven.org/maven2/): Failed to transfer file: http://repo1.maven.org/maven2/or ... er-tests-2.4.0.pom. Return code is: 504 , ReasonPhrase:Gateway Timeout.
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:334)
        ... 28 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.hadoop:hadoop-yarn-server-tests:pom:2.4.0 from/to central (http://repo1.maven.org/maven2/): Failed to transfer file: http://repo1.maven.org/maven2/or ... er-tests-2.4.0.pom. Return code is: 504 , ReasonPhrase:Gateway Timeout.
        at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1016)
        at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
        at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
        at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://repo1.maven.org/maven2/or ... er-tests-2.4.0.pom. Return code is: 504 , ReasonPhrase:Gateway Timeout.
        at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:889)
        at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
        at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660)
        ... 4 more
[ERROR]
[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/confluen ... ResolutionException

已有(7)人评论

跳转到指定楼层
bioger_hit 发表于 2014-10-25 09:11:42
用这个命令

  1. mvn package -DskipTests
复制代码



回复

使用道具 举报

王林红 发表于 2014-10-26 21:55:13

谢谢,我已经编译通过了,我有一个疑问,storm on yarn 和zooKpeer就没有关系了吧


回复

使用道具 举报

bioger_hit 发表于 2014-10-26 22:32:37
王林红 发表于 2014-10-26 21:55
谢谢,我已经编译通过了,我有一个疑问,storm on yarn 和zooKpeer就没有关系了吧
可以不使用zookeeper
回复

使用道具 举报

1312695213 发表于 2017-8-22 16:52:44
大侠,是怎么解决的
回复

使用道具 举报

1312695213 发表于 2017-8-22 16:54:12
我在windows下执行mvn package -DskipTests
,报这个错误Failed to execute goal on project storm-yarn: Could not resolve dependencies for project com.yahoo.storm.yarn:storm-yarn:jar:1.0-alpha: Failed to collect dependencies at org.apache.storm:storm-core:jar:0.9.6: Failed to read artifact descriptor for org.apache.storm:storm-core:jar:0.9.6: Could not transfer artifact org.apache.storm:storm-core:pom:0.9.6 from/to central (http://repo1.maven.org/maven2/): Connect to repo1.maven.org:80 [repo1.maven.org/151.101.24.209] failed: Connection timed out: connect -> [Help 1]
回复

使用道具 举报

1312695213 发表于 2017-8-22 17:15:49
是因为不能再 windows下编译吗?
回复

使用道具 举报

qcbb001 发表于 2017-8-22 19:19:17
1312695213 发表于 2017-8-22 17:15
是因为不能再 windows下编译吗?

window应该可以的。还是maven的问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条