【问题标题】:Cannot build Storm for the storm-starter example无法为storm-starter 示例构建Storm
【发布时间】:2016-10-19 05:13:21
【问题描述】:

我是 Apache Storm 的新手。我试图跟随风暴启动器。我克隆了存储库,然后尝试在本地构建和安装storm。不幸的是,我什至不能这样做。无法构建storm-metrics jar

    [INFO] ------------------------------------------------------------------------
[INFO] Building storm-metrics 2.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ storm-metrics ---
[INFO] Deleting /Users/apple/storm/external/storm-metrics/target
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (cleanup) @ storm-metrics ---
[INFO] 
[INFO] --- maven-antrun-plugin:1.6:run (prepare) @ storm-metrics ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks

main:
     [echo] Downloading sigar native binaries...
      [get] Getting: https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip
      [get] To: /var/root/.m2/repository/org/fusesource/sigar/1.6.4/hyperic-sigar-1.6.4.zip
      [get] Error opening connection java.io.FileNotFoundException: https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip
      [get] Error opening connection java.io.FileNotFoundException: https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip
      [get] Error opening connection java.io.FileNotFoundException: https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip
      [get] Can't get https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip to /var/root/.m2/repository/org/fusesource/sigar/1.6.4/hyperic-sigar-1.6.4.zip
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] storm-metrics ...................................... FAILURE [  2.818 s]
[INFO] storm-cassandra .................................... SKIPPED
[INFO] storm-mqtt-parent .................................. SKIPPED
[INFO] storm-mqtt ......................................... SKIPPED
[INFO] storm-mqtt-examples ................................ SKIPPED
[INFO] storm-mongodb ...................................... SKIPPED
[INFO] storm-clojure ...................................... SKIPPED
[INFO] storm-starter ...................................... SKIPPED
[INFO] storm-kafka-client ................................. SKIPPED
[INFO] storm-opentsdb ..................................... SKIPPED
[INFO] storm-kafka-monitor ................................ SKIPPED
[INFO] storm-kinesis ...................................... SKIPPED
[INFO] storm-druid ........................................ SKIPPED
[INFO] storm-submit-tools ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.867 s
[INFO] Finished at: 2016-08-31T11:52:45+01:00
[INFO] Final Memory: 26M/270M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (prepare) on project storm-metrics: An Ant BuildException has occured: Can't get https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip to /var/root/.m2/repository/org/fusesource/sigar/1.6.4/hyperic-sigar-1.6.4.zip -> [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/MojoExecutionException

我不知道如何解决这个问题。我试图点击链接:https://magelan.googlecode.com/files/hyperic-sigar-1.6.4.zip,但该页面上确实没有任何内容。

所以我已经坚持了 4 个小时,我什至无法运行拓扑...请帮助 :(

【问题讨论】:

  • 顺便说一句,我正在使用 el capitan OS 的 macbook pro 2012 工作。为了构建,我在克隆存储库时创建的文件夹“Storm”中运行了以下命令“sudo mvn clean install -DskipTests=true”

标签: java maven apache-storm distributed-computing building


【解决方案1】:

hyperic-sigar-1.6.4.zip 的下载链接好像改成了

https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/magelan/hyperic-sigar-1.6.4.zip

尝试执行以下操作:

在文件external/storm-metrics/pom.xml 中,将<sigar.download.url> 的条目设置为<sigar.download.url>https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/magelan/hyperic-sigar-${sigar.version}.zip</sigar.download.url>,然后重新运行mvn clean install -DskipTests=true

在我的例子中,我对所有出现的旧下载链接都进行了 grep,并用新链接替换了它们,但我想这不是必需的,因为出现链接的所有其他地方都是在构建过程中生成的。替换链接对我有用。也很奇怪,该链接已经在他们的 GitHub 存储库中更正了,但是当您从 GitHub 将其作为 zip 文件下载时却没有。

【讨论】:

  • 我刚才看到,他们实际上回答了您的问题帖子。我想这会让我的答案过时了......
【解决方案2】:

在现有问题链接下方:

https://github.com/apache/storm/commit/ef3c4de133528d04f76a43a0e87e72cea19e173e

我尝试使用最新的 Storm-starter 克隆进行构建,并且运行良好。更新您的存储库并重试。应该可以正常工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-29
    • 2013-11-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多