当前位置: 首页 > 知识库问答 >
问题:

从5.2.2升级到6.4.2(yum安装VS yum更新)

司空和悌
2023-03-14
#Installing from the RPM repository
#Create a file called elasticsearch.repo in the /etc/yum.repos.d/ directory for RedHat based distributions, 

#DO UPGRADE
#In the terms of ordering, update first the master nodes, then data nodes, then load-balancing/client nodes.

#Disable Shard reallocation
curl -XPUT localhost:9200/_cluster/settings -d '{ "transient" : { "cluster.routing.allocation.enable" : "none" } }'

#Shutdown the instance:
curl -XPOST 'http://localhost:9200/_cluster/nodes/_local/_shutdown'

sudo systemctl stop elasticsearch
sudo yum update elasticsearch
sudo systemctl start elasticsearch

#Enable shard re-allocation:
curl -XPUT localhost:9200/_cluster/settings -d '{ "transient" : { "cluster.routing.allocation.enable" : "all" } }'

#Watch cluster go from yellow state to green with:
curl -X GET http://localhost:9200/_cat/health?v // monitors the overal cluster state
curl -X GET http://localhost:9200/_cat/nodes?v // verify that the new node joined the cluster
curl -X GET http://localhost:9200/_cat/shards?v // see shards being started, initialized and relocated

#Repeat for the next node.

共有1个答案

仲学真
2023-03-14

答案是肯定的。百胜更新将升级ES的最新版本。

确保您有:

1)将/etc/yum.repos.d/elasticsearch.repo更新为最新的6.x版本

curl -X GET http://host_ip:9200/index_name/_settings?pretty\&human
 类似资料:
  • 本文向大家介绍通过yum升级CentOS/RHEL最小化安装的方法,包括了通过yum升级CentOS/RHEL最小化安装的方法的使用技巧和注意事项,需要的朋友参考一下 1.如果你有安装CentOS / RHEL最小服务器安装,您可能有很多麻烦没有安装包 2.有一种方法来安装所有的包,需要一个基本的服务器,使用yum groupinstall命令 3.从最小的安装基本升级你的服务器 # yum gr

  • 问题内容: 我可以使用conda从GitHub安装/升级软件包吗? 例如,我可以这样做: 直接从GitHub中的分支安装。我可以用conda做一些等效的事情吗? 如果这不可能,那么用conda安装pip并使用pip管理此类本地安装是否有意义? 问题答案: 现在,对此有了更好的支持。例如,您现在可以执行以下操作: 它仍然在后台调用pip,但是您现在可以将conda和pip软件包规范统一在一个文件中。

  • 本文向大家介绍Linux下升级安装python3.8并配置pip及yum的教程,包括了Linux下升级安装python3.8并配置pip及yum的教程的使用技巧和注意事项,需要的朋友参考一下 服务器的CentOS 7中自带的python版本是python-2.7.5,需要再安装一个 python-3.8.1 一、查看版本 安装前查看一下是否已经安装过python,我这里自带了python2.7.5

  • 我们正在对我们的产品进行小升级,并想确认以下与小升级中的组件处理相关的事情: 我不想在小升级后在系统上安装某些组件。因此,我从“设置设计”视图中删除了这些组件。尽管如此,我仍然可以在components视图中看到组件,并用红色感叹号表示它们不再是任何功能的一部分。Installshield建议不要在小升级时从产品中删除组件。 没事吧?或者,它会给升级或卸载带来一些风险吗

  • 22.3 YUM 线上升级机制 我们在本章一开始的地方谈到过 yum 这玩意儿,这个 yum 是通过分析 RPM 的标头数据后, 根据各软件的相关性制作出属性相依时的解决方案,然后可以自动处理软件的相依属性问题,以解决软件安装或移除与升级的问题。 详细的 yum 服务器与用户端之间的沟通,可以再回到前面的部分查阅一下图 22.1.1 的说明。 由于 distribution 必须要先释出软件,然后

  • 如何从OpenFalcon v0.1 平滑升级到 FalconPlus v0.2? 新增数据库表 cd $GOPATH/src/github.com/open-falcon/falcon-plus/scripts/mysql/db_schema/ mysql -h 127.0.0.1 -u root -p < 5_alarms-db-schema.sql NOTE: falcon-plus 如何编