es监控工具--elasticsearch-HQ
# elasticsearch-HQ
## 1、参考文档
```
https://github.com/ElasticHQ/elasticsearch-HQ
http://docs.elastichq.org/installation.html
```
## 2、安装
```
#Requirements
Python 3.4+
Elasticsearch. Supported versions: 2.x, 5.x, 6.x, 7.x
#download
wget https://github.com/ElasticHQ/elasticsearch-HQ/archive/refs/tags/v3.5.12.tar.gz
#python虚拟环境
/usr/local/pythonenv/python36/bin/pip install virtualenv
/usr/local/pythonenv/python36/bin/virtualenv -p /usr/local/pythonenv/python36/bin/python /usr/local/pythonenv/es-hq
#安装python依赖包
mv elasticsearch-HQ-3.5.12/ /usr/local/elasticsearch-HQ-3.5.12
cd /usr/local/elasticsearch-HQ-3.5.12
/usr/local/pythonenv/es-hq/bin/pip install -r requirements.txt
/usr/local/pythonenv/es-hq/bin/pip install sqlite3
#log设置
elastichq/config/logger.json
#启动
/usr/local/pythonenv/es-hq/bin/python application.py --host 192.168.200.62
```
## 3、问题
```
##ModuleNotFoundError: No module named ‘pysqlite2‘
yum install sqlite-devel -y
Python-3.6.11
make altinstall
##AttributeError: ‘Request‘ object has no attribute ‘is_xhr‘
/usr/local/pythonenv/es-hq/bin/pip install Werkzeug==0.16.1
```