【问题标题】:Install Apache Ignite on EC2在 EC2 上安装 Apache Ignite
【发布时间】:2017-11-05 14:31:49
【问题描述】:

我正在尝试在 EC2 (CentOS) 上安装 Apache Ignite。 下载了最新的 Ignite src (2.0) 并安装了 Java 1.8 和 MVN。

接下来尝试运行(在 Ignite 文件夹内)MVN 设置但失败:

mvn clean package -DskipTests
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/apache/16/apache-16.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.apache.ignite:ignite-parent:1: Could not transfer artifact org.apache:apache:pom:16 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.32.215] failed: Connection timed out (Connection timed out) and 'parent.relativePath' points at no local POM @ org.apache.ignite:ignite-parent:1, /home/ec2-user/ignite/apache-ignite-2.0.0-src/parent/pom.xml, line 29, column 13
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.apache.ignite:apache-ignite:2.0.0 (/home/ec2-user/ignite/apache-ignite-2.0.0-src/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.apache.ignite:ignite-parent:1: Could not transfer artifact org.apache:apache:pom:16 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.32.215] failed: Connection timed out (Connection timed out) and 'parent.relativePath' points at no local POM @ org.apache.ignite:ignite-parent:1, /home/ec2-user/ignite/apache-ignite-2.0.0-src/parent/pom.xml, line 29, column 13 -> [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

我可以在我的 Mac 上以相同的方式安装而不会出现此错误。可能是什么问题?可以不同地设置 MVN 以避免此错误吗?还是 EC2/Apache Ignite 兼容性有问题? (我无法将 AMI 用于 Ignite,因为未获准在公司网络内使用)

【问题讨论】:

    标签: amazon-ec2 ignite


    【解决方案1】:

    连接到 maven 存储库时出现问题,请检查此存储库是否可从您的 EC2 机器访问:

    连接到 repo.maven.apache.org:443 [repo.maven.apache.org/151.101.32.215] 失败:连接超时

    不必在服务器上从 src 构建 Ignite,您可以下载二进制文件并使用它们。

    【讨论】:

    • 谢谢。您是否有示例(二进制文件的链接)并逐步说明如何操作?
    • 这似乎是二进制文件的链接:ignite.apache.org/download.cgi#binaries。你有从二进制文件构建它的经验吗?要遵循什么程序?谢谢。
    • 下载二进制文件并运行 ignite.sh,如下所述:apacheignite.readme.io/docs/…
    • 已下载 (wget mirrors.koehn.com/apache//ignite/2.0.0/…),解压缩二进制文件并尝试但有错误:bin/ignite.sh examples/config/example-cache.xml 错误:无法找到或加载主类 org.apache .ignite.startup.cmdline.CommandLineRandomNumberGenerator 错误:无法找到或加载主类 org.apache.ignite.internal.util.portscanner.GridJmxPortFinder bin/ignite.sh,警告:无法解析 JMX 主机(JMX 将被禁用): ip-xxxx.xxcom 错误:无法找到或加载主类 org.apache.ignite.startup.cmdline.CommandLineStartup
    • 你又下载了源代码。对于ignite-2.0下载mirrors.koehn.com/apache//ignite/2.0.0/…
    【解决方案2】:

    安装 ignite 最简单的方法是:

    1. https://ignite.apache.org/下载ZIP包
    2. 提取内容
    3. 运行 ignite_home/bin/ignite.sh

    【讨论】:

      猜你喜欢
      • 2020-03-02
      • 2016-06-07
      • 2013-09-05
      • 2014-10-20
      • 2015-02-10
      • 2014-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多