I am new to curator and reindexing some documents from YYYYMMDD indexes into a monthly index and also setting my shard and replica counts when creating the index.
I was getting the following error when running curator
2017-06-17 08:41:36,755 ERROR Failed to complete action: reindex. <class 'curator.exceptions.FailedExecution'>: Exception encountered. Rerun with loglevel DEBUG and/or check Elasticsearch logs for more information. Exception: 'Elasticsearch' object has no attribute 'exists_alias
This happened because you probably installed via pip, and had elasticsearch-py version 5.4.0 installed on a version of Curator before 5.1. Something weird was going on with the exists_alias method, but it seems to have been fixed by upgrading the python client.
In any case, the fix is to install Curator 5.1.1 (the most recent version at this time).
For reference, the error message comes from the post check, where if dest references an alias, it doesn't check to see that the target index got written to.
In 5.0.2, the call was added. At the time, it was elasticsearch-py version 5.3.0.
alias_instead = self.client.exists_alias(...
Note that it is self.client.exists_alias. For consistencies sake, this call was moved to the Indices subsection in elasticsearch-py 5.4.0. If you upgraded to elasticsearch-py 5.4.0 and were still using Curator < 5.1, then you would get the 'Elasticsearch' object has no attribute 'exists_alias', because the call had been moved. So in Curator 5.1, a change was made to the call and the version requirement updated to 5.4.0.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.