1

我已经坚持了大约一天。我在我的 redhat vm 上下载并安装了 ElasticSearch 2.3.3。我正在尝试关注网站上的入门视频,但视频中的任何安装命令都没有为我工作,因此我尝试了指南中的安装方法。

我下载了 rpm 并输入以下命令进行安装:

cd /usr/share/elasticsearch
bin/plugin -DproxyHost=... -DproxyPort=... install license
bin/plugin -DproxyHost=... -DproxyPort=... install marvel-agent

然后我启动了我的 ElasticSearch 节点并转到 localhost:9200/_plugin/marvel 但没有弹出任何内容。

然后我想可能是因为我只下载了代理而不是奇迹,所以我尝试从 cmd 行安装奇迹,但我不断收到 FileNotFound 异常

bin/plugin -DproxyHost=... -DproxyPort=... install marvel

然后我手动下载了 marvel-2.3.3.tar.gz 并尝试手动安装

bin/plugin -DproxyHost=... -DproxyPort=... install --verbose file://.../marvel-2.3.3.tar.gz

但我被告知 zip 缺少 plugin-descriptor.properties 文件

Verifying file:/home1/isuser/Downloads/marvel-2.3.3.tar.gz 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

然后我解压缩了 marvel-2.3.3.tar,添加了一个 .properties 文件,重新压缩并重新安装。仍然有同样的错误。

我真的需要一些帮助。这非常令人沮丧。我仍然需要安装 Kibana,但如果该安装像这个一样令人愤怒,我不期待它......

编辑

我通过将 .properties 文件从marvel目录中移动到同一级别来解决此错误,但现在我遇到了一个新错误。它一直给我一个FileNotFoundException

[root@den01ejm elasticsearch]# bin/plugin install -DproxyHost=www-proxy.us.oracle.com -DproxyPort=80 --verbose /home1/isuser/Desktop/up/marvel-2.3.3.tar.gz 
-> Installing /home1/isuser/Desktop/up/marvel-2.3.3.tar.gz...
Trying https://download.elastic.co//home1/home1-isuser.zip ...
Failed: FileNotFoundException[https://download.elastic.co//home1/home1-isuser.zip]; nested: FileNotFoundException[https://download.elastic.co//home1/home1-isuser.zip]; 
Trying https://search.maven.org/remotecontent?filepath=/home1/isuser/home1-isuser.zip ...
Failed: FileNotFoundException[https://search.maven.org/remotecontent?filepath=/home1/isuser/home1-isuser.zip]; nested: FileNotFoundException[https://search.maven.org/remotecontent?filepath=/home1/isuser/home1-isuser.zip]; 
Trying https://oss.sonatype.org/service/local/repositories/releases/content//home1/isuser/home1-isuser.zip ...
Failed: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content//home1/isuser/home1-isuser.zip]; nested: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content//home1/isuser/home1-isuser.zip]; 
Trying https://github.com//home1/archive/isuser.zip ...
Failed: FileNotFoundException[https://github.com//home1/archive/isuser.zip]; nested: FileNotFoundException[https://github.com//home1/archive/isuser.zip]; 
Trying https://github.com//home1/archive/master.zip ...
Failed: FileNotFoundException[https://github.com//home1/archive/master.zip]; nested: FileNotFoundException[https://github.com//home1/archive/master.zip]; 
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
4

1 回答 1

0
cd /usr/share/elasticsearch
bin/plugin -DproxyHost=... -DproxyPort=... install license
bin/plugin -DproxyHost=... -DproxyPort=... install marvel-agent

这就是需要在Elasticsearch 2.x 中安装以使 Marvel 监控 Elasticsearch 的全部内容。Marvel Agent 监控节点,依赖于许可插件,然后将数据发送到任何它配置的地方(默认情况下,发送到同一个节点)。

您尝试安装的第三个插件是 Marvel UI 组件。从 ES 2.x 开始,UI 组件是Kibana的一部分,而不是Elasticsearch的一部分。

因此,您应该在 Kibana 中安装该插件。当您尝试使用 Marvel 2.3.3 时,您应该使用 Kibana 4.5(所以现在是 Kibana 4.5.1)。在 Kibana 中,您可以将其安装在那里:

bin/kibana plugin --install elasticsearch/marvel/latest

注意:插件命令的语法将在 Elasticsearch 5.x 和 Kibana 5.x 中发生变化这将大大简化为 Elasticsearch 和 Kibana 的字面意思是相同的文件,但双方仍然需要这两个应用程序:监控和用户界面。

bin/elasticsearch-plugin install x-pack
bin/kibana-plugin install x-pack
于 2016-06-06T19:52:18.190 回答