ES索引管理工具curator安装

2017-03-25  本文已影响0人  太渺小

ES索引管理工具curator

https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html

Features

Version Compatibility

curator对es版本的支持情况:

https://www.elastic.co/guide/en/elasticsearch/client/curator/current/version-compatibility.html

Installation

从Curator 4.2开始,需要使用python3版本。

pip

# 如果python没装pip,安装pip:
wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
python get-pip.py

# 安装当前版本
pip install elasticsearch-curator

# 安装特定版本:
pip install -U elasticsearch-curator==3.5.1

# 升级curator到最新新版本
pip install -U elasticsearch-curator

# 升级curator到指定版本
pip install -U elasticsearch-curator==3.5.1

APT repository

wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo 'deb http://packages.elastic.co/curator/4/debian stable main' > /etc/apt/sources.list.d/curator.list
sudo apt-get update && sudo apt-get install elasticsearch-curator

YUM repository

# 添加Elastic' Signing Key:
rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch

# RHEL/CentOS 6: 写/etc/yum.repos.d/curator.repo
[curator-4]
name=CentOS/RHEL 6 repository for Elasticsearch Curator 4.x packages
baseurl=http://packages.elastic.co/curator/4/centos/6
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1

# RHEL/CentOS 7: 写/etc/yum.repos.d/curator.repo
[curator-4]
name=CentOS/RHEL 7 repository for Elasticsearch Curator 4.x packages
baseurl=http://packages.elastic.co/curator/4/centos/7
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1

yum install elasticsearch-curator

Source Code

https://www.elastic.co/guide/en/elasticsearch/client/curator/current/python-source.html

wget https://pypi.python.org/packages/source/p/package/package-#.#.#.tar.gz
tar zxf package-#.#.#.tar.gz
cd package-#.#.#
python setup.py install

Curator Commands

上一篇 下一篇

猜你喜欢

热点阅读