Delete the old data from index

This suggests that curator was not installed to the path for the root user. What is the output of

env | grep PATH


ls /usr/local/bin/curator

Now i'm getting this error,

[root@lpdosput020008 ~]# curator --dry-run /root/curator.yml
Traceback (most recent call last):
  File "/bin/curator", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/", line 2837, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/", line 449, in _build_master
  File "/usr/lib/python2.7/site-packages/", line 742, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/", line 639, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: jmespath>=0.7.1,<1.0.0

What OS is this? What version of Python?

Older versions of Python included with some operating systems will not be fully supported as the bundled dependencies are out of date (as displayed in your output).

Python 2.7.10 or greater should be sufficient. Anything older is hit and miss.

If the server has Python3, that would be better. Install using pip3 if that is the case.

You can also attempt to address this by finding a jmespath version within the constraints provided, and install like the other Curator dependencies, e.g.

pip install jmespath-x.y.z.tar.gz

As this is a raft of other dependencies, there may be others that are missing as well.

Are you sure you can’t just install the Curator RPM or DEB package manually? You clearly have root access, and those packages have all of the necessities bundled. You wouldn’t need external access. Just copy the necessary file across and install with the package manager as needed.

If you do go this route, though, you should uninstall the pip-based Curator installation first:

pip uninstall elasticsearch-curator

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