Elasticsearch之插件介绍及安装
?
ES站點(diǎn)插件(以網(wǎng)頁(yè)形式展現(xiàn))
1、BigDesk Plugin (作者 Luká? Vl?ek)
簡(jiǎn)介:監(jiān)控es狀態(tài)的插件,推薦!【目前不支持2.x】
2、Elasticsearch Head Plugin (作者 Ben Birch) (主要)
簡(jiǎn)介:很方便對(duì)es進(jìn)行各種操作的客戶端。
3、kopf Plugin(作者lmenezes) (主要)
Kopf是一個(gè)ElasticSearch的管理工具,它也提供了對(duì)ES集群操作的API
4、?marvel插件
marvel工具可以幫助使用者監(jiān)控elasticsearch的運(yùn)行狀態(tài),不過這個(gè)插件需要license。安裝完license后可以安裝marvel的agent,agent會(huì)收集elasticsearch的運(yùn)行狀態(tài)。
然后在Kibana段安裝marvel插件,這個(gè)插件與sense類似,都集成在kibana的導(dǎo)航列表面。
5、其他插件
$ ${ES_HOME}/bin/plugin --install lukas-vlcek/bigdesk
# 安裝完成訪問:http://your ip:9200/_plugin/bigdesk/#nodes
?
$ ${ES_HOME}/bin/plugin -install royrusso/elasticsearch-HQ
# 安裝完成訪問:http://your ip:9200/_plugin/HQ/
?
$ ${ES_HOME}/bin/plugin -install lmenezes/elasticsearch-kopf
# 安裝完成訪問:http://your ip:9200/_plugin/kopf/#!/cluster
?
?
?
?
ES插件之Head Plugin
(1)這個(gè)head插件主要提供的是健康狀態(tài)查詢
(2)在線安裝 :bin/plugin install mobz/elasticsearch-head
(3)離線安裝:?bin/plugin install? file:///home/zhouls/elasticsearch-head-master.zip
(4)刪除bin/plugin remove head
(5)訪問http://your ip:9200/_plugin/head/
? (6)bin/plugin是ES的插件腳本,用這個(gè)來安裝。
?
?
ES插件Head Plugin之在線安裝
需要去https://github.com/上下載,搜索mobz/elasticsearch-head
進(jìn)入,
?
?
https://github.com/mobz/elasticsearch-head
這就是所謂的在線安裝!即,在$ES_HOME下,在線安裝 :bin/plugin install mobz/elasticsearch-head
?
?
這就是離線安裝,即,離線安裝:?bin/plugin install? file:///home/zhouls/elasticsearch-head-master.zip
??
這就是最后下載下來的!
?
?
?
?
我這里,以離線方式來安裝ES插件之Head Plugin!
1、 為了方便管理,我將這個(gè)elasticsearch-head-master.zip上傳到,我的/usr/local/elasticsearch目錄下。
[hadoop@djt002 elasticsearch]$ pwd
/usr/local/elasticsearch
[hadoop@djt002 elasticsearch]$ ll
total 4
drwxrwxr-x. 9 hadoop hadoop 4096 Feb 21 07:07 elasticsearch-2.4.3
[hadoop@djt002 elasticsearch]$ rz
[hadoop@djt002 elasticsearch]$ ll
total 892
drwxrwxr-x. 9 hadoop hadoop 4096 Feb 21 07:07 elasticsearch-2.4.3
-rw-r--r--. 1 hadoop hadoop 908862 Jan 10 11:38 elasticsearch-head-master.zip
[hadoop@djt002 elasticsearch]$
?
2、執(zhí)行命令
[hadoop@djt002 elasticsearch]$ ll
total 892
drwxrwxr-x. 9 hadoop hadoop 4096 Feb 21 07:07 elasticsearch-2.4.3
-rw-r--r--. 1 hadoop hadoop 908862 Jan 10 11:38 elasticsearch-head-master.zip
[hadoop@djt002 elasticsearch]$ cd elasticsearch-2.4.3/
[hadoop@djt002 elasticsearch-2.4.3]$ pwd
/usr/local/elasticsearch/elasticsearch-2.4.3
[hadoop@djt002 elasticsearch-2.4.3]$ bin/plugin install file:///usr/local/elasticsearch/elasticsearch-head-master.zip
-> Installing from file:/usr/local/elasticsearch/elasticsearch-head-master.zip...
Trying file:/usr/local/elasticsearch/elasticsearch-head-master.zip ...
Downloading .........DONE
Verifying file:/usr/local/elasticsearch/elasticsearch-head-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 /usr/local/elasticsearch/elasticsearch-2.4.3/plugins/head
[hadoop@djt002 elasticsearch-2.4.3]$
?
?
?3、插件的目錄結(jié)構(gòu)
[hadoop@djt002 elasticsearch-2.4.3]$ cd plugins/
[hadoop@djt002 plugins]$ pwd
/usr/local/elasticsearch/elasticsearch-2.4.3/plugins
[hadoop@djt002 plugins]$ ll
total 4
drwxrwxr-x. 5 hadoop hadoop 4096 Feb 21 22:46 head
[hadoop@djt002 plugins]$ cd head/
[hadoop@djt002 head]$ pwd
/usr/local/elasticsearch/elasticsearch-2.4.3/plugins/head
[hadoop@djt002 head]$ ll
total 52
-rw-rw-r--. 1 hadoop hadoop 248 Feb 21 22:46 Dockerfile
-rw-rw-r--. 1 hadoop hadoop 104 Feb 21 22:46 elasticsearch-head.sublime-project
-rw-rw-r--. 1 hadoop hadoop 2171 Feb 21 22:46 Gruntfile.js
-rw-rw-r--. 1 hadoop hadoop 3482 Feb 21 22:46 grunt_fileSets.js
-rw-rw-r--. 1 hadoop hadoop 1085 Feb 21 22:46 index.html
-rw-rw-r--. 1 hadoop hadoop 559 Feb 21 22:46 LICENCE
-rw-rw-r--. 1 hadoop hadoop 793 Feb 21 22:46 package.json
-rw-rw-r--. 1 hadoop hadoop 100 Feb 21 22:46 plugin-descriptor.properties
-rw-rw-r--. 1 hadoop hadoop 5320 Feb 21 22:46 README.textile
drwxrwxr-x. 5 hadoop hadoop 4096 Feb 21 22:46 _site
drwxrwxr-x. 4 hadoop hadoop 4096 Feb 21 22:46 src
drwxrwxr-x. 4 hadoop hadoop 4096 Feb 21 22:46 test
[hadoop@djt002 head]$
?
?
?
?
4、插件安裝完成之后的驗(yàn)證
注意啊,前提得是es啟動(dòng)啊
[hadoop@djt002 elasticsearch-2.4.3]$ bin/elasticsearch -d
?
? 輸入,http://192.168.80.200:9200/_plugin/head/ ? ? ? ? ? ? ? ? ? head是插件名稱
?
?
?
?
?
?
?
?
?ES插件kopf Plugin之在線安裝
需要去https://github.com/上下載,搜索lmenezes/elasticsearch-kopf
?
?
進(jìn)入,https://github.com/search?utf8=%E2%9C%93&q=lmenezes%2Felasticsearch-kopf
?
?
?
?
https://github.com/lmenezes/elasticsearch-kopf
?
?
?
這就是所謂的在線安裝!即,在$ES_HOME下,在線安裝 :bin/plugin install?lmenezes/elasticsearch-kopf
?
?
?
這就是離線安裝,即,離線安裝:?bin/plugin install? file:///home/zhouls/elasticsearch-kopf-master.zip
?
這就是最后下載下來的!
?
?
?
我這里,以離線方式來安裝ES插件之Kopf Plugin!
1、 為了方便管理,我將這個(gè)elasticsearch-kopf-master.zip上傳到,我的/usr/local/elasticsearch目錄下。
[hadoop@djt002 elasticsearch]$ pwd
/usr/local/elasticsearch
[hadoop@djt002 elasticsearch]$ ll
total 892
drwxrwxr-x. 9 hadoop hadoop 4096 Feb 21 07:07 elasticsearch-2.4.3
-rw-r--r--. 1 hadoop hadoop 908862 Jan 10 11:38 elasticsearch-head-master.zip
[hadoop@djt002 elasticsearch]$ rz
[hadoop@djt002 elasticsearch]$ ll
total 3072
drwxrwxr-x. 9 hadoop hadoop 4096 Feb 21 07:07 elasticsearch-2.4.3
-rw-r--r--. 1 hadoop hadoop 908862 Jan 10 11:38 elasticsearch-head-master.zip
-rw-r--r--. 1 hadoop hadoop 2228252 Jan 10 11:38 elasticsearch-kopf-master.zip
[hadoop@djt002 elasticsearch]$
?
?
?
2、執(zhí)行命令
[hadoop@djt002 elasticsearch]$ ll
total 3072
drwxrwxr-x. 9 hadoop hadoop 4096 Feb 21 07:07 elasticsearch-2.4.3
-rw-r--r--. 1 hadoop hadoop 908862 Jan 10 11:38 elasticsearch-head-master.zip
-rw-r--r--. 1 hadoop hadoop 2228252 Jan 10 11:38 elasticsearch-kopf-master.zip
[hadoop@djt002 elasticsearch]$ cd elasticsearch-2.4.3/
[hadoop@djt002 elasticsearch-2.4.3]$ pwd
/usr/local/elasticsearch/elasticsearch-2.4.3
[hadoop@djt002 elasticsearch-2.4.3]$ bin/plugin install file:///usr/local/elasticsearch/elasticsearch-kopf-master.zip
-> Installing from file:/usr/local/elasticsearch/elasticsearch-kopf-master.zip...
Trying file:/usr/local/elasticsearch/elasticsearch-kopf-master.zip ...
Downloading ......................DONE
Verifying file:/usr/local/elasticsearch/elasticsearch-kopf-master.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
Installed kopf into /usr/local/elasticsearch/elasticsearch-2.4.3/plugins/kopf
[hadoop@djt002 elasticsearch-2.4.3]$
?
?
?
?
?3、插件的目錄結(jié)構(gòu)
[hadoop@djt002 plugins]$ pwd
/usr/local/elasticsearch/elasticsearch-2.4.3/plugins
[hadoop@djt002 plugins]$ ll
total 4
drwxrwxr-x. 5 hadoop hadoop 4096 Feb 21 22:46 head
[hadoop@djt002 plugins]$ ll
total 8
drwxrwxr-x. 5 hadoop hadoop 4096 Feb 21 22:46 head
drwxrwxr-x. 8 hadoop hadoop 4096 Feb 21 23:13 kopf
[hadoop@djt002 plugins]$ cd kopf/
[hadoop@djt002 kopf]$ pwd
/usr/local/elasticsearch/elasticsearch-2.4.3/plugins/kopf
[hadoop@djt002 kopf]$ ll
total 52
-rw-rw-r--. 1 hadoop hadoop 237 Feb 21 23:13 CHANGELOG.md
drwxrwxr-x. 2 hadoop hadoop 4096 Feb 21 23:13 dataset
drwxrwxr-x. 2 hadoop hadoop 4096 Feb 21 23:13 docker
-rw-rw-r--. 1 hadoop hadoop 4315 Feb 21 23:13 Gruntfile.js
drwxrwxr-x. 2 hadoop hadoop 4096 Feb 21 23:13 imgs
-rw-rw-r--. 1 hadoop hadoop 1083 Feb 21 23:13 LICENSE
-rw-rw-r--. 1 hadoop hadoop 1276 Feb 21 23:13 package.json
-rw-rw-r--. 1 hadoop hadoop 102 Feb 21 23:13 plugin-descriptor.properties
-rw-rw-r--. 1 hadoop hadoop 3165 Feb 21 23:13 README.md
drwxrwxr-x. 6 hadoop hadoop 4096 Feb 21 23:13 _site
drwxrwxr-x. 4 hadoop hadoop 4096 Feb 21 23:13 src
drwxrwxr-x. 4 hadoop hadoop 4096 Feb 21 23:13 tests
[hadoop@djt002 kopf]$
?
?
?
?
4、插件安裝完成之后的驗(yàn)證
注意啊,前提得是es啟動(dòng)啊 ??[hadoop@djt002 elasticsearch-2.4.3]$ bin/elasticsearch -d
?
?
輸入,http://192.168.80.200:9200/_plugin/kopf/ ? ? ? ? ? ? ? ? ? kopf是插件名稱
?
?
?
?
?
?
?
我這里,以在線方式來安裝ES插件之marvel插件!
[hadoop@HadoopMaster elasticsearch-2.4.3]$ pwd /home/hadoop/app/elasticsearch-2.4.3 [hadoop@HadoopMaster elasticsearch-2.4.3]$ bin/plugin install license -> Installing license... Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.3/license-2.4.3.zip ... Downloading .......DONE Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.3/license-2.4.3.zip checksums if available ... Downloading .DONE Installed license into /home/hadoop/app/elasticsearch-2.4.3/plugins/license [hadoop@HadoopMaster elasticsearch-2.4.3]$ bin/plugin install marvel-agent -> Installing marvel-agent... Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.4.3/marvel-agent-2.4.3.zip ... Downloading ..........DONE Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.4.3/marvel-agent-2.4.3.zip checksums if available ... Downloading .DONE @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: plugin requires additional permissions @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * java.lang.RuntimePermission setFactory * javax.net.ssl.SSLPermission setHostnameVerifier See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html for descriptions of what these permissions allow and the associated risks.Continue with installation? [y/N]y Installed marvel-agent into /home/hadoop/app/elasticsearch-2.4.3/plugins/marvel-agent [hadoop@HadoopMaster elasticsearch-2.4.3]$
?
?
?
?
?
總結(jié):
對(duì)于ES而言,安裝其他插件的方法,跟此類似!
?
?
?
?
?
?
?推薦
Elasticsearch筆記三之版本控制和插件
總結(jié)
以上是生活随笔為你收集整理的Elasticsearch之插件介绍及安装的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: /proc/net/sockstat 里
- 下一篇: 关机重启,通信