■概要
ElasticSearchのリビジョンアップの手順の確認
■環境
CentOS 7
■実行
yum -y update
Installコマンドを実行しなくてもelaticsearch kibana logstashは5.5.1にリビジョンアップ
■X-Packのリビジョンアップ
X-Packはyumでは実行出来ないため、下からzipを取得する。
https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-5.5.1.zip
■X-Pack再インストール
#まずはlistで表示してpluginを確認 Elasticsearch だけはX-Packをremoveが必要
/usr/share/elasticsearch/bin/elasticsearch-plugin list
#旧5.5.0が残っているのでX-Packを削除
/usr/share/elasticsearch/bin/elasticsearch-plugin remove x-pack
/usr/share/kibana/bin/kibana-plugin remove x-pack
/usr/share/logstash/bin/logstash-plugin remove x-pack
#elasticsearch以外はx-packを削除しなくても再インストール可能でしたが、listで確認しましょう。
#5.5.1をインストール
/usr/share/elasticsearch/bin/elasticsearch-plugin install file:///path/x-pack-5.5.1.zip
/usr/share/kibana/bin/kibana-plugin install file:///path/x-pack-5.5.1.zip
/usr/share/logstash/bin/elogstash-plugin install file:///path/x-pack-5.5.1.zip
■kibana ymlが初期化されたので修正 server.hostの"#"を外す
vi /etc/kibana/kibana.yml
server.host:”0.0.0.0”
■諸々Restart
systemctl daemon-reload
systemctl restart elasticsearch
systemctl restart kibana
systemctl restart logstash
■firewallをrestartしないと繋がらなかった
systemctl restart firewalld
■起動確認、終了
curl -u elastic:changeme localhost:9200
curl -u elastic:changeme localhost:5601
次の5.6も同じ方法でアップデート出来るかは確認します。