Fork me on GitHub
Suzf  Blog

How-to: install elasticsearch plugin

elasticsearch 插件

由于公司内部访问权限控制严格,自己搭建的虚拟机只能通过搭建代理上网

因为某种限制第一种安装未成功, 所以有了后面的方法。
自动安装
[11:38:08][[email protected] elasticsearch]$ ./bin/plugin -install mobz/elasticsearch-head
-> Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip...
Failed to install mobz/elasticsearch-head, reason: failed to download out of all possible locations..., use --verbose to get detailed information

[11:35:35][[email protected] elasticsearch]$ wget https://github.com/mobz/elasticsearch-head/archive/master.zip
--2015-11-26 11:35:56--  https://github.com/mobz/elasticsearch-head/archive/master.zip
Connecting to x.x.9.158:3128... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://codeload.github.com/mobz/elasticsearch-head/zip/master [following]
--2015-11-26 11:36:05--  https://codeload.github.com/mobz/elasticsearch-head/zip/master
Connecting to x.x.9.158:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 899159 (878K) [application/zip]
Saving to: “master.zip”

100%[==================================================
2015-11-26 11:36:10 (292 KB/s) - “master.zip” saved [899159/899159]

手动安装
[16:12:12][[email protected] elasticsearch]$ ./bin/plugin --install elasticsearch-head --url file:///usr/share/elasticsearch/plugins/master.zip
-> Installing elasticsearch-head...
Trying file:/usr/share/elasticsearch/plugins/master.zip...
Downloading .........DONE
Installed elasticsearch-head into /usr/share/elasticsearch/plugins/head

Reference  elasticsearch-modules-plugins-install