# How to Upgrade ElasticSearch v2.1.0 to v5.2.2?

**URL:** <https://discuss.elastic.co/t/how-to-upgrade-elasticsearch-v2-1-0-to-v5-2-2/78648>\
**Category:** Elasticsearch\
**Created:** [March 15, 2017, 6:41am UTC](https://discuss.elastic.co/t/how-to-upgrade-elasticsearch-v2-1-0-to-v5-2-2/78648 "2017-03-15T06:41:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishore419](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kishore419](https://discuss.elastic.co/u/kishore419)\
**Post date:** [March 15, 2017, 6:41am UTC](https://discuss.elastic.co/t/how-to-upgrade-elasticsearch-v2-1-0-to-v5-2-2/78648/1 "2017-03-15T06:41:54Z")

</div>

we are using elasticserach v2.1.0 on production server(centos 7, 64bit).  
we need to upgrade to v5.2.2.  
i don't see any upgrade scripts from elasticsearch website or other sources.  
i have followed ElasticSearch Upgrade documentation:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html)

i stuck on upgrade\_note section  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html#upgrade-node](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html#upgrade-node)  
i don't see much details about 'Section: 3 Stop and upgrade a single node"

i am getting few exception while installing 'rpm -ivh v5.2.2' on elasticsearch box(v2.1.0 running)  
can you please help/share upgrade process steps/script if available.  
Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 16, 2017, 7:54am UTC](https://discuss.elastic.co/t/how-to-upgrade-elasticsearch-v2-1-0-to-v5-2-2/78648/2 "2017-03-16T07:54:51Z")

</div>

You will need to follow [https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-upgrade.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-upgrade.html) as you cannot do rolling upgrades between major versions.

---

<div class="post-metadata">

**Author:** ![kishore419](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kishore419](https://discuss.elastic.co/u/kishore419)\
**Post date:** [April 12, 2017, 3:55am UTC](https://discuss.elastic.co/t/how-to-upgrade-elasticsearch-v2-1-0-to-v5-2-2/78648/3 "2017-04-12T03:55:27Z")

</div>

direct upgrade procedure is not available in shared link.  
elasticsearch v2.1.0 is running on centos7 machine.  
i want to upgrade to ealsticsearch v5.2.2  
i have used ' **Installing from the RPM repository**' section  
URL: [https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html)  
sudo yum install elasticsearch  
is worked well, but it is always download/upgrading latest elasticsearch i.e. 5.3+ not 5.2.2  
hence i have following below section steps.  
**Download and install the RPM manually**  
i have seen couple of exception as described above, hence i have uninstalled elasticsearchv2.1.0 and installed new version v5.2.2. it works well.  
is above approach correct? let me know your thoughts.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 10, 2017, 4:04am UTC](https://discuss.elastic.co/t/how-to-upgrade-elasticsearch-v2-1-0-to-v5-2-2/78648/4 "2017-05-10T04:04:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
