-
Notifications
You must be signed in to change notification settings - Fork 636
snapshot on indices created on pre ES 1.4 #713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In addtion I can see in the index settings the following field: is this not what being mapped into create_date? |
The |
no, I do not have any filters on the snapshot action. |
You're right. That's not needed for this action to occur. Curator 4 differs from the previous versions in that it pulls the index metadata for all indices when it starts. The message you report happens during that index metadata discovery step:
As I mentioned already, this is because Curator 4 determines to do the safe thing with older indices. The README shows that Curator 4 is meant for Elasticsearch versions 2+. I will add another bit to the README to indicate that indices created before ES 1.4 are not supported. |
Maybe it will be better to add an option to explicitly ignore this check on certain indices mentioned in the action file? |
I'd prefer not to make exceptions to a rule. There are several other good and important reasons to have indices upgraded to at least a 2.x version (which is crucial if an eventual upgrade to Elasticsearch 5.0 is planned, as older indices cannot be used in place). If you still want to use Curator, use can use version 3.5.1 which has no such restrictions and according to the compatibility matrix supports all ES versions 0.x through 2.x. Curator 4 is the first version which is not fully backwards compatible. |
How would you upgrade indices? do I really need to reindex them? that's not very practical on very large index only to get a create date |
If you're already using Elasticsearch 2.3, you could try the new While I can sympathize with the pain of reindexing data, as mentioned, if you plan on upgrading to newer versions of Elasticsearch in the future, this will still be required at that point. |
As there is no real solution other than reindexing, I'm marking this closed. If you feel this is in error, please feel free to reopen the ticket, or open a new one. |
Hi,
} curl -XPUT 'localhost:9200/xxxx/_settings' -d ' { |
@vishnu-svmx You cannot manually add this metadata. It will not work. Your only option is mentioned in this post in the thread, and reindex. |
I have curator set up to run snapshot on ES 1.6.1. the server was upgraded several time and index is quite old.
I'm getting this error when trying to snapshot the indices:
016-07-31 10:36:17,394 INFO Action #1: snapshot
2016-07-31 10:36:17,423 WARNING Index: products has no "creation_date"! This implies that the index predates Elasticsearch v1.4. For safety, this index will be removed from the actionable list.
2016-07-31 10:36:17,423 WARNING Index: query-prediction has no "creation_date"! This implies that the index predates Elasticsearch v1.4. For safety, this index will be removed from the actionable list.
2016-07-31 10:36:17,423 ERROR Unable to complete action "snapshot". No actionable items in list: <class 'curator.exceptions.NoIndices'>
what are the issues with snapshots on indices that were created pre v.1.4?
I don't have any issues running the snapshot manually
The text was updated successfully, but these errors were encountered: