Skip to content

Instantly share code, notes, and snippets.

@ohsawa0515
Created November 4, 2014 02:43
Show Gist options
  • Save ohsawa0515/b74bc24e21fd7d02fc19 to your computer and use it in GitHub Desktop.
Save ohsawa0515/b74bc24e21fd7d02fc19 to your computer and use it in GitHub Desktop.
Elasticsearch&Curatorインストールメモ
## Elasticsearchのインストール(RPM)
root> yum install java-1.7.0-openjdk
root> wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.noarch.rpm
root> rpm -ivh elasticsearch-1.3.4.noarch.rpm
root> chkconfig --add elasticsearch && chkconfig elasticsearch on
root> service elasticsearch start
## Python, pipのインストール
root> yum install python python-devel
root> curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
root> python --version
Python 2.6.6
root> pip --version
pip 1.5.6 from /usr/lib/python2.6/site-packages (python 2.6)
## Curatorのインストール
root> pip install elasticsearch-curator
root> pip list | grep elasticsearch
elasticsearch (1.2.0)
elasticsearch-curator (2.0.2)
root> curator --version
Traceback (most recent call last):
File "/usr/bin/curator", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment