在 EC2 上安装 Apache Ignite

Posted

技术标签:

【中文标题】在 EC2 上安装 Apache Ignite【英文标题】:Install Apache Ignite on EC2 【发布时间】: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,因为未获准在公司网络内使用)

【问题讨论】:

【参考方案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 最简单的方法是:

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

【讨论】:

以上是关于在 EC2 上安装 Apache Ignite的主要内容,如果未能解决你的问题,请参考以下文章

在 Amazon Elastic Beanstalk(Apache、EC2)上安装 Mod_security

我们如何在aws ec2 linux实例的不同端口安装多个apache服务器

在 EC2 上的 apache 实例上启用 SSL

错误:无法找到或加载主类 org.apache.ignite.startup.cmdline

ignite客户端安装及使用-DBeaver

在命令行上运行 Apache Ignite 时创建 Ignite 组件失败