天天看點

elasticsearch插件一——-head插件安裝詳解

一、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插件安裝

【前提】:作業系統版本

[root@5b9dbaaa148a config]# cat /etc/issue 
CentOS release 6.6 (Final)           

第一步:

[elasticsearch@5b9dbaaa148a 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

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

第二步:

驗證插件安裝成功标志:

[elasticsearch@5b9dbaaa148a elasticsearch]$ curl -X GET http://10.8.5.101:9200/_plugin/head            

三、前端呈現

浏覽器通路結果:

elasticsearch插件一——-head插件安裝詳解

作者:銘毅天下

轉載請标明出處,原文位址:

http://blog.csdn.net/laoyang360/article/details/51472821