手动安装Elasticsearch插件

got*_*ch4 21 elasticsearch elasticsearch-plugin

因为我的Elasticsearch服务器位于代理服务器后面,所以我无法使用bin下的命令直接安装插件.

所以我尝试在plugins目录中解压缩其中的一些,没有运气.

具体来说,我尝试了这个https://github.com/jprante/elasticsearch-knapsack,我无法让它工作.

有帮助吗?

imo*_*tov 32

通常,只要文件访问权限没有搞砸,就可以将插件文件解压缩到插件目录中.要验证插件是否已正确安装,请检查elasticsearch主目录是否包含调用的目录plugins/knapsack,并且此目录包含两个文件:commons-compress-1.4.1.jarelasticsearch-knapsack-2.1.2.jar

您还可以将插件zip文件下载到临时位置,然后通过使用--url参数指定路径来安装它:

bin/plugin --install knapsack --url file:///Full/Path/To/elasticsearch-knapsack-2.1.2.zip
Run Code Online (Sandbox Code Playgroud)

有关更多信息,请参阅插件文档.

  • 看起来在最近的版本中参数已经改变.现在它只是:bin/plugin安装文件:///Full/Path/To/elasticsearch-knapsack-2.1.2.zip-来源:https://www.elastic.co/guide/en/elasticsearch/plugins/2.2 /installation.html (3认同)

小智 9

我使用以下命令在防火墙后面安装插件:

bin/plugin -DproxyHost=myproxy.proxy.com -DproxyPort=80 --install lmenezes/elasticsearch-kopf
Run Code Online (Sandbox Code Playgroud)