(6)bin/plugin是ES的插件脚本,用这个来安装。
ES插件Head Plugin之在线安装
需要去https://github.com/上下载,搜索mobz/elasticsearch-head
进入,
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、 为了方便管理,我将这个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
2、执行命令
[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
3、插件的目录结构
[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
4、插件安装完成之后的验证
注意啊,前提得是es启动啊
[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
进入,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、 为了方便管理,我将这个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、执行命令
[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
** 3、插件的目录结构**
[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
![img](https://img-blog.csdnimg.cn/img_convert/4c44ee342987f8f54cc784c474e08e52.png)
![img](https://img-blog.csdnimg.cn/img_convert/19e8099c7bcd9cc58c96fd7de6debddd.png)
**网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。**
es
-rw-rw-r--. 1 hadoop hadoop 3165 Feb 21 23:13 README.md
[外链图片转存中...(img-FTNGqxnE-1726064928124)]
[外链图片转存中...(img-eEExHSmE-1726064928125)]
**网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。**