Unable to install Search Guard plugin for Elasticsearch-5.x

♀尐吖头ヾ 提交于 2019-12-10 13:56:43

问题


Due to the restrictions, I was not allowed to install any packages from internet. So, This command is not useful for me inorder to install search-guard.

 bin/elasticsearch-plugin install -b com.floragunn:search-guard-ssl:<version>

However, I am able to install Search Guard successfully on a different network by running the above command.

Because of this reason, I tried installing Search Guard from tar.gz or zip file by the below command as per documentation.

 /usr/share/elasticsearch# bin/elasticsearch-plugin install     file:///home/xxxx/xxxx/search-guard-5-5.2.0-10-sgadmin-standalone.zip 

This one is failing with the below error.

 -> Downloading file:///home/xxx/xxxx/search-guard-5-5.2.0-10-  sgadmin-standalone.zip
 [=================================================] 100%   
 ERROR: `elasticsearch` directory is missing in the plugin zip

I downloaded zip/tar.gz from this maven repository of search gaurd.

Is anyone also facing the same issue. If not, kindly help in solving this one.


回答1:


Download this file from maven to /home/xxxx: https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-5/5.2.0-11/search-guard-5-5.2.0-11.zip

Install it:

bin/elasticsearch-plugin install -b file:///home/xxxx/search-guard-5-5.2.0-11.zip

Other releases are available here: https://oss.sonatype.org/content/repositories/releases/com/floragunn/



来源:https://stackoverflow.com/questions/42357273/unable-to-install-search-guard-plugin-for-elasticsearch-5-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!