To continue, I installed curator on a Python 2.6.6 system thusly:
pip install elasticsearch-curator
And Elasticsearch 1.2.1 is installed on the same server. But when running
curator --help, I see:
$ curator --help
Traceback (most recent call last):
File "/usr/bin/curator", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch>=1.0.0,<2.0.0
This was per the information found at:
I'm not a Python dev (yet, anyway) but I don't believe I left anything out
that was explicitly mentioned on the curator github page.
Brian
On Monday, July 14, 2014 3:00:27 PM UTC-4, Brian wrote:
A quick question: Is Python 2 acceptable for use with curator, or is
Python 3 required?
should solve the problem, though it is listed in dependencies, so it should
just work from the beginning.
elasticsearch is listing python 2 and 3, curator doesn't list any, but I
don't see anything version-specific in its code, so should work with any
verions.
I've tested it with python3.
On Monday, July 14, 2014 8:30:27 PM UTC+1, Brian wrote:
To continue, I installed curator on a Python 2.6.6 system thusly:
pip install elasticsearch-curator
And Elasticsearch 1.2.1 is installed on the same server. But when running
curator --help, I see:
$ curator --help
Traceback (most recent call last):
File "/usr/bin/curator", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch>=1.0.0,<2.0.0
$ pip install elasticsearch
Requirement already satisfied (use --upgrade to upgrade): elasticsearch in
/usr/lib/python2.6/site-packages
Cleaning up...
$ curator --help
Traceback (most recent call last):
File "/usr/bin/curator", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch>=1.0.0,<2.0.0
$ uname -a
Linux elktest 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
$ pip install elasticsearch
Requirement already satisfied (use --upgrade to upgrade): elasticsearch in
/usr/lib/python2.6/site-packages
Cleaning up...
$ curator --help
Traceback (most recent call last):
File "/usr/bin/curator", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: elasticsearch>=1.0.0,<2.0.0
$ uname -a
Linux elktest 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
An update: I have installed curator 1.2.2 by downloading the zip archive,
unpacking it, and then installing it directly:
$ cd curator-1.2.2
$ sudo python setup.py install
Not sure if it's the fix since the previous version of curator, or else the
pip-less install. But either way, it's working fine just as expected. And
it works superbly!
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.