6.elasticsearch插件一head插件安装详解

铭毅天下,原文地址:blog.****.net/laoyang360 https://blog.****.net/wojiushiwo987/article/details/51472821

一、elasticsearch-head插件介绍

elasticsearch-head是一个用来浏览、与Elastic Search簇进行交互的web前端展示插件。 
elasticsearch-head是一个用来监控Elastic Search状态的客户端插件。(摘自:《实战Elasticsearch、Logstash、Kibana 分布式大数据搜索与日志挖掘及可视化解决方案》)

elasticsearch-head插件主要用途:

elasticsearch主要有以下三个主要操作—— 
1)簇浏览,显示簇的拓扑并允许你执行索引(index)和节点层面的操作。 
2)查询接口,允许你查询簇并以原始json格式或表格的形式显示检索结果。 
3)显示簇状态,有许多快速访问的tabs用来显示簇的状态。 
4)支持Restful API接口,包含了许多选项产生感兴趣的结果,包括: 
第一,请求方式:get,put,post,delete; json请求数据,节点node, 路径path。 
第二,JSON验证器。 
第三,定时请求的能力。 
第四,用javascript表达式传输结果的能力。 
第五,统计一段时间的结果或该段时间结果比对的能力。 
第六,以简单图标的形式绘制传输结果。

二、 elasticsearch-head插件安装

【前提】:操作系统版本

[[email protected] config]# cat /etc/issue 
CentOS release 6.6 (Final)

第一步:

[[email protected] bin]$ /usr/local/elasticsearch/bin/plugin install mobz/elasticsearch-head 
-> Installing mobz/elasticsearch-head… 
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip … 
Downloading ………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………..DONE 
Verifying https://github.com/mobz/elasticsearch-head/archive/master.zip checksums if available … 
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify) 
Installed head into /data/elasticsearch/plugins/head

注意格式: /usr/local/elasticsearch/bin/plugin install mobz/elasticsearch-head

第二步:

**验证插件安装成功标志: 
[[email protected] elasticsearch]$ curl -X GET http://10.8.5.101:9200/_plugin/head 

三、前端呈现

**浏览器访问结果: 
6.elasticsearch插件一head插件安装详解