# How to upgrade data from elasticsearch 2.4 to 5.6

**URL:** <https://discuss.elastic.co/t/how-to-upgrade-data-from-elasticsearch-2-4-to-5-6/116619>\
**Category:** Elasticsearch\
**Created:** [January 23, 2018, 8:59am UTC](https://discuss.elastic.co/t/how-to-upgrade-data-from-elasticsearch-2-4-to-5-6/116619 "2018-01-23T08:59:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharon\_wsf](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Sharon\_wsf](https://discuss.elastic.co/u/Sharon_wsf)\
**Post date:** [January 23, 2018, 8:59am UTC](https://discuss.elastic.co/t/how-to-upgrade-data-from-elasticsearch-2-4-to-5-6/116619/1 "2018-01-23T08:59:57Z")

</div>

hi team,

how to upgrade elasticsearch from 2.4 to 5.6?  
i have read [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/rolling-upgrades.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/rolling-upgrades.html)  
but what step actually i need to do? this is not very clear.  
i already backup the data from 2.4.  
after diasabled shard, and syns, i it direct can reindex?  
but how to migrate the data from 2.4 to 5.6?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 23, 2018, 9:17am UTC](https://discuss.elastic.co/t/how-to-upgrade-data-from-elasticsearch-2-4-to-5-6/116619/2 "2018-01-23T09:17:49Z")

</div>

If you read [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/setup-upgrade.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/setup-upgrade.html) you'll see that Rolling Upgrade is not supported in your case.

You need to do a full cluster restart: [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/restart-upgrade.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/restart-upgrade.html)

Or you can do Reindex from remote: [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docs-reindex.html#reindex-from-remote](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docs-reindex.html#reindex-from-remote)

---

<div class="post-metadata">

**Author:** ![Sharon\_wsf](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Sharon\_wsf](https://discuss.elastic.co/u/Sharon_wsf)\
**Post date:** [January 23, 2018, 9:32am UTC](https://discuss.elastic.co/t/how-to-upgrade-data-from-elasticsearch-2-4-to-5-6/116619/3 "2018-01-23T09:32:23Z")

</div>

if i use Reindex from remote, what setting should i do?  
i need install what plugin at elasticsearch 2.4 and 5.6?  
i get error  
""type": "illegal\_argument\_exception",  
"reason": "[10.88.4.253:9200] not whitelisted in reindex.remote.whitelist"

i already add 'reindex.remote.whitelist: oldhost:9200' at elasticsearch 2.4/ but still same.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 23, 2018, 10:04am UTC](https://discuss.elastic.co/t/how-to-upgrade-data-from-elasticsearch-2-4-to-5-6/116619/4 "2018-01-23T10:04:49Z")

</div>

> i need install what plugin at elasticsearch 2.4 and 5.6?

Nothing.

> i already add 'reindex.remote.whitelist: oldhost:9200' at elasticsearch 2.4/ but still same.

No. You need to add `reindex.remote.whitelist: 10.88.4.253:9200` in the 5.6 node settings.

---

<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:** [February 20, 2018, 10:05am UTC](https://discuss.elastic.co/t/how-to-upgrade-data-from-elasticsearch-2-4-to-5-6/116619/5 "2018-02-20T10:05:35Z")

</div>

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