Lately, I have been working on migrating from elasticsearch 0.19 to 1.7 version. One of the tasks involves migrating data from old to new cluster. In this post, I write about a tool for migrating the data over to the new version.
Firstly, you cannot move the index files directly, attempting results in following error in 1.7 ES:
Error injecting constructor, org.elasticsearch.ElasticsearchIllegalStateException: Could not find a state file to recover from among
Elasticsearch 0.19 version is ancient and not compatible for a direct migration. Hence the only solution is to read it from the old elasticsearch cluster and write to new elastic.
Followed a simple guideline while coming up for the tool:
Checkout the README on github to set it up locally.
Whats pending:
A nice user experience.
Firstly, you cannot move the index files directly, attempting results in following error in 1.7 ES:
Error injecting constructor, org.elasticsearch.ElasticsearchIllegalStateException: Could not find a state file to recover from among
Elasticsearch 0.19 version is ancient and not compatible for a direct migration. Hence the only solution is to read it from the old elasticsearch cluster and write to new elastic.
Followed a simple guideline while coming up for the tool:
- Primary goal: "Just move the data over to new version!"
- Nice to haves: "Monitor its progress"
Checkout the README on github to set it up locally.
Whats pending:
A nice user experience.
No comments:
Post a Comment