安装readonlyrest plugin for elasticsearch获取错误FileNotFoundException [英] Installing readonlyrest plugin for elasticsearch getting error FileNotFoundException

查看:1584
本文介绍了安装readonlyrest plugin for elasticsearch获取错误FileNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装弹性搜索 elasticsearch-readonlyrest-plugin 。现在在其安装页面上安装,-Uninstall,-Build 提到使用命令 sudo bin / plugin install https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/raw/master/download/elasticsearch-readonlyrest-v1.5_es -v2.1.1.zip

I am trying to install elastisearch elasticsearch-readonlyrest-plugin. Now on its installation page Install,-Uninstall,-Build it was mentioned to use command sudo bin/plugin install https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/raw/master/download/elasticsearch-readonlyrest-v1.5_es-v2.1.1.zip.

我尝试使用上面的命令,但出现错误

I tried to use above command but got error

-> Installing from https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/raw/master/download/elasticse
arch-readonlyrest-v1.5_es-v2.1.1.zip...
Trying https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/raw/master/download/elasticsearch-readonl
yrest-v1.5_es-v2.1.1.zip ...
Failed: FileNotFoundException[https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/raw/master/downloa
d/elasticsearch-readonlyrest-v1.5_es-v2.1.1.zip]; nested: FileNotFoundException[https://github.com/sscarduzio/el
asticsearch-readonlyrest-plugin/raw/master/download/elasticsearch-readonlyrest-v1.5_es-v2.1.1.zip];

我还尝试从此网址下载插件下载,并从他们那里得到一个电子邮件,提到它们使用下面的步骤。

I also tried to download the plugin from this url download, and also got an email from them where it was mentioned to use below steps.


  • 将zip文件cd下载到Elasticsearch主页

  • bin / elasticsearch-plugin安装文件:///download-folder/readonlyrest-1.13.1_es2.4.4.zip

  • 编辑elasticsearch.yml并添加配置片段

  • Download the zip file cd to the Elasticsearch home
  • bin/elasticsearch-plugin install file:///download-folder/readonlyrest-1.13.1_es2.4.4.zip
  • Edit elasticsearch.yml and add your configuration snippets

所以我下载了readonlyrest插件,但是当我尝试使用命令 bin / elasticsearch-plugin安装文件:///download-folder/readonlyrest-1.13.1_es2.4.4.zip 我收到以下错误

So i downloaded my readonlyrest plugin but when i tried to use command bin/elasticsearch-plugin install file:///download-folder/readonlyrest-1.13.1_es2.4.4.zip i got below error

-bash: bin/elasticsearch-plugin: No such file or directory



任何人都可以告诉我在我的elasticsearch-clust中安装elasticsearch readonlyrest插件的正确方法是什么我正在尝试从最近三天,没有发现任何有用的。

Can anyone please tell me what is the proper way to install elasticsearch readonlyrest plugion in my elasticsearch-cluster properly i am trying from last three days and haven't found anything useful.

更新

我使用以下命令,但仍然有错误

I used below command but still got an error

sum1er99@elasticsearch-2-1-vm:/usr/share/elasticsearch$ sudo bin/plugin install https://github.com/sscarduzio/el
asticsearch-readonlyrest-plugin/archive/v1.13.1_es2.4.4.zip
-> Installing from https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/archive/v1.13.1_es2.4.4.zip..
.
Trying https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/archive/v1.13.1_es2.4.4.zip ...
Downloading ....................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
................................................................................................................
..........................................................DONE
Verifying https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/archive/v1.13.1_es2.4.4.zip checksums 
if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
ERROR: Could not find plugin descriptor 'plugin-descriptor.properties' in plugin zip
sum1er99@elasticsearch-2-1-vm:/usr/share/elasticsearch$ 


推荐答案

ReadonlyREST的下载政策已经更改,您无法通过网址安装(除非您自己在某个地方托管zip文件)。

The downloads policy of ReadonlyREST has changed, you can't install by url anymore (unless you host the zip file somewhere yourself).

将在这里重复我在GitHub问题#153中所说的:

I will repeat here what I said in GitHub issue #153:

我选择了一个官方网站作为一个单一的下载点出于各种原因:

I opted to have an official website as a single point of download for various reasons:


  • 跟踪谷歌分析中的下载次数(GH没有下载分析)

  • 跟踪唯一用户下载(与上述相同的原因)

  • 跟踪最下载的版本(有用的确定旧ES分支机构何时可以不受支持)

  • 保证用户只能下载最新版本(这是一个安全插件,这很重要)

  • 能够通知用户安全漏洞,您应该升级

  • keep track of the number of downloads in google analytics (GH has no analytics for downloads)
  • keep track of unique users downloads (same reasons as above)
  • keep track of what versions are downloaded most (useful to decide when old ES branches can become unsupported)
  • Guarantee that users can download ONLY the latest version (this is a security plugin, and this is important)
  • Be able to notify users when a vulnerability is fixed and you should upgrade

这篇关于安装readonlyrest plugin for elasticsearch获取错误FileNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆