How to upgrade data from elasticsearch 2.4 to 5.6


(雪中的凤凰) #1

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
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?


(David Pilato) #2

If you read 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

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


(雪中的凤凰) #3

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.


(David Pilato) #4

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.


(system) #5

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