elasticsearchHow do I upgrade Elasticsearch?
-
To upgrade Elasticsearch, you first need to download the latest version from the Elasticsearch Download Page.
-
Once you have the latest version downloaded, you can use the
elasticsearch-plugin
command to install it. For example:
$ elasticsearch-plugin install file:/path/to/elasticsearch-x.x.x.zip
- After the installation is complete, the output should be similar to this:
-> Installing file:/path/to/elasticsearch-x.x.x.zip
-> Downloading
.............................................................................................DONE
-> Installed file:/path/to/elasticsearch-x.x.x.zip into /usr/share/elasticsearch/plugins/x.x.x
- After the installation is complete, you need to restart the Elasticsearch service for the changes to take effect. You can use the following command to do that:
$ sudo service elasticsearch restart
- After the service is restarted, you can check the version of Elasticsearch by running the following command:
$ curl -XGET 'localhost:9200'
- The output should be similar to this:
{
"name" : "node-1",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "abcdefghijklmnopqrstuvwxyz",
"version" : {
"number" : "x.x.x",
"build_hash" : "abcdefghijklmnopqrstuvwxyz",
"build_date" : "YYYY-MM-DDTHH:mm:ss.zzzZ",
"build_snapshot" : false,
"lucene_version" : "x.x.x"
},
"tagline" : "You Know, for Search"
}
- If the version number in the output matches the version you installed, then your upgrade was successful.
More of Elasticsearch
- How can I use elasticsearch zone awareness to improve my software development?
- How can I configure an Elasticsearch Prometheus exporter?
- How can I use Elasticsearch with Zammad?
- How do I use Elasticsearch with ZGC?
- How do I use ElasticSearch to zip files?
- How can I use Elasticsearch and ZFS together?
- How do I decide whether to use a keyword or text field when indexing documents in Elasticsearch?
- How can I store and query zoned datetime values in Elasticsearch?
- How do I set up an Elasticsearch Yum repository?
- How can I use Yandex Mirror to access Elasticsearch data?
See more codes...