/article/2017/03/26/elastic-curator-install/
Elastic Curator 简介和安装
- 【分类】Service
- 【发布】2017-03-26 19:17
- 【更新】2020-01-16 18:12
curator
- curator是一个用于管理es中的索引的工具,可以用来批量操作ES的索引。
- curator是用Python写的,可以作为命令行工具,也能作为python的API。
https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html
Features
curator可以对索引进行关闭、开启、删除等,详细特性查看官网:
https://www.elastic.co/guide/en/elasticsearch/client/curator/current/about-features.html
Version Compatibility
curator对es版本的支持情况:
https://www.elastic.co/guide/en/elasticsearch/client/curator/current/version-compatibility.html
Installation
https://www.elastic.co/guide/en/elasticsearch/client/curator/current/installation.html
注:从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 # 升级curator到最新新版本 pip install -U elasticsearch-curator # 指定版本 pip install -U elasticsearch-curator==X.Y.Z
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
curator安装完后支持两个命令:
- curator
- curator_cli