从ElasticSearch 6.5.1升级到6.7.1

时间:2019-04-30 07:41:19

标签: elasticsearch elasticsearch-6

无法从Elastic search 6.5.1升级到6.7.1

我正在按照使用该链接执行弹性搜索的滚动升级的步骤进行操作。 https://www.elastic.co/guide/en/elasticsearch/reference/6.7/rolling-upgrades.html

我已经下载了RPM。但是当我运行

 rpm --install elasticsearch-6.7.1.rpm

    file /etc/init.d/elasticsearch from install of elasticsearch-0:6.7.1-1.noarch conflicts with file from package elasticsearch-0:6.5.1-1.noarch
    file /etc/sysconfig/elasticsearch from install of elasticsearch-0:6.7.1-1.noarch conflicts with file from package elasticsearch-0:6.5.1-1.noarch
    file /var/lib/elasticsearch from install of elasticsearch-0:6.7.1-1.noarch conflicts with file from package elasticsearch-0:6.5.1-1.noarch
    file /var/log/elasticsearch from install of elasticsearch-0:6.7.1-1.noarch conflicts with file from package elasticsearch-0:6.5.1-1.noarch
    file /etc/elasticsearch/jvm.options from install of elasticsearch-0:6.7.1-1.noarch conflicts with file from package elasticsearch-0:6.5.1-1.noarch
    file /etc/elasticsearch/log4j2.properties from install of elasticsearch-0:6.7.1-1.noarch conflicts with file from package elasticsearch-0:6.5.1-1.noarch
    file /usr/lib/systemd/system/elasticsearch.service from install of elasticsearch-0:6.7.1-1.noarch conflicts with file from package elasticsearch-0:6.5.1-1.noarch
    file /usr/share/elasticsearch/NOTICE.txt from install of elasticsearch-0:6.7.1-1.noarch conflicts with file from package elasticsearch-0:6.5.1-1.noarch
    file /usr/share/elasticsearch/bin/elasticsearch-certgen.bat from install of elasticsearch-0:6.7.1-1.noarch conflicts with file from package elasticsearch-0:6.5.1-1.noarch

1 个答案:

答案 0 :(得分:0)

这不是一个弹性搜索问题,而是一个RPM问题。由于我没有安装升级程序,所以我使用了错误的命令。正确的命令是

  rpm -Uvh elasticsearch-6.7.1.rpm

从获得解决方案 https://unix.stackexchange.com/questions/411740/rpm-install-file-conflict-from-previous-install