安装Elasticsearch 7时出错-依赖项失败

时间:2019-04-19 15:20:12

标签: elasticsearch centos install

在我的专用服务器上,我当前安装了Elasticsearch 6。我想升级到Elasticsearch7。我使用的是“手动下载并安装RPM”方法。这是解释步骤的链接:

https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html

这是我的最终步骤:

[root@server ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm
--2019-04-18 17:19:20--  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm
Resolving artifacts.elastic.co (artifacts.elastic.co)... 2a04:4e42:2e::734, 151.101.198.222
Connecting to artifacts.elastic.co (artifacts.elastic.co)|2a04:4e42:2e::734|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 346827255 (331M) [application/octet-stream]
Saving to: ‘elasticsearch-7.0.0-x86_64.rpm’

100%[=============================================================================================================================================>] 346,827,255  106MB/s   in 3.3s   

2019-04-18 17:19:43 (102 MB/s) - ‘elasticsearch-7.0.0-x86_64.rpm’ saved [346827255/346827255]

[root@server ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm.sha512
--2019-04-18 17:20:01--  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-x86_64.rpm.sha512
Resolving artifacts.elastic.co (artifacts.elastic.co)... 2a04:4e42:2e::734, 151.101.198.222
Connecting to artifacts.elastic.co (artifacts.elastic.co)|2a04:4e42:2e::734|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 160 [application/octet-stream]
Saving to: ‘elasticsearch-7.0.0-x86_64.rpm.sha512’

100%[=============================================================================================================================================>] 160         --.-K/s   in 0s      

2019-04-18 17:20:01 (22.7 MB/s) - ‘elasticsearch-7.0.0-x86_64.rpm.sha512’ saved [160/160]

[root@server ~]# shasum -a 512 -c elasticsearch-7.0.0-x86_64.rpm.sha512
elasticsearch-7.0.0-x86_64.rpm: OK
[root@server ~]# sudo rpm --install elasticsearch-7.0.0-x86_64.rpm
warning: elasticsearch-7.0.0-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
error: Failed dependencies:
    elasticsearch < 7.0.0 is obsoleted by elasticsearch-0:7.0.0-1.x86_64

这是我的服务器规格:

Centos:7.6

Java: openjdk版本“ 1.8.0_201” OpenJDK运行时环境(内部版本1.8.0_201-b09) OpenJDK 64位服务器VM(内部版本25.201-b09,混合模式)

1 个答案:

答案 0 :(得分:1)

您以前是否添加了RPM存储库?我不确定e2e/ - features/ - feature1/ - feature1.feature - steps.js (given, when, then, etc.) - feature2/ - world.js 的其他来源。

如果是这样,我将清理缓存目录,获取所有可用版本,然后安装所需的版本:

obsoleted by elasticsearch-0:7.0.0-1.x86_64