2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Elasticsearch の バージョンアップ(備忘録)

Last updated at Posted at 2018-09-20

filebeat の index の 再作成を先にやっておく。

Elasticsearch を 6.4.x に バージョンアップし、プラグインをバージョンアップする。

yum update elasticsearch

# kuromoji 更新
ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.*****.co.jp -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.*****.co.jp -Dhttps.proxyPort=8080" /usr/share/elasticsearch/bin/elasticsearch-plugin remove analysis-kuromoji
ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.*****.co.jp -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.*****.co.jp -Dhttps.proxyPort=8080" /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-kuromoji

# user-agent 更新 ※6.7.0~は不必要
ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.*****.co.jp -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.*****.co.jp -Dhttps.proxyPort=8080" /usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-user-agent
ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.*****.co.jp -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.*****.co.jp -Dhttps.proxyPort=8080" /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-user-agent

# geoip 更新(インストール Yes/No 聞かれる) ※6.7.0~は不必要
ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.*****.co.jp -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.*****.co.jp -Dhttps.proxyPort=8080" /usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-geoip
ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.*****.co.jp -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.*****.co.jp -Dhttps.proxyPort=8080" /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-geoip

※user-agent と geoip は elasticsearch 6.7.0 からは elasticsearch にデフォルト入っています。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?