【问题标题】:Marvel plugin not finding .properties fileMarvel 插件找不到 .properties 文件
【发布时间】:2016-06-07 03:52:18
【问题描述】:

我已经坚持了大约一天。我在我的 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 但没有弹出任何内容。

然后我想可能是因为我只下载了代理而不是marvel,所以我尝试从cmd行安装marvel,但我不断收到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

【问题讨论】:

  • 你在哪里下载了marvel-2.3.3.zip?我问是因为您注意到了这一点,但随后错误指出了 .tar.gz
  • 来自本网站提供的链接:elastic.co/guide/en/marvel/current/…。这是一个 ..tar.gz 文件,我在问题中打错字了

标签: elasticsearch elasticsearch-marvel


【解决方案1】:
cd /usr/share/elasticsearch
bin/plugin -DproxyHost=... -DproxyPort=... install license
bin/plugin -DproxyHost=... -DproxyPort=... install marvel-agent

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

您尝试安装的第三个​​插件是 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,但双方仍然需要这两个应用程序:监控和 UI。

bin/elasticsearch-plugin install x-pack
bin/kibana-plugin install x-pack

【讨论】:

  • 我尝试按照该指南中的建议通过 kibana 安装,但我在代理后面。你知道 bin/kibana 命令的代理选项吗?我试过 -DproxyHost 但我得到“未知选项 -D”
  • -DproxyHost (et al) 是 Java 系统属性。 Kibana 是使用 node.js 编写的,所以它不使用它们。 Kibana 的脚本显然没有公开使用代理的机制,因此您将必须使用本地安装方法:bin/kibana plugin --install marvel --url file://path/to/file 请注意,使用此方法时必须提供名称。跨度>
  • 好的,谢谢。我只会在这里回复,所以您不必回复两个线程。所以我输入了指定绝对路径的 bin/kibana 命令,现在我得到了一个ENOTDIR: not a directory, unlink /file/to/kibana-4.5.1-linux-x64/installedPlugins/.plugin.installing/archive.part。你知道这可能是什么吗?如果这是一个不同的问题,我可以发一篇关于它的新帖子。
  • 这只是file:/ 的愚蠢之处,根据您的系统,我发现您需要额外的/ 或删除/。试试file:/path/to/marvel-2.3.3.tar.gz
  • 不幸的是,这并没有解决它。我将在 Elastic 论坛上发布新帖子。 ElasticSearch 在这里似乎没有太多的知名度:/。感谢您的帮助!
猜你喜欢
  • 2020-10-16
  • 2023-03-23
  • 2021-05-23
  • 1970-01-01
  • 2014-06-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-03
相关资源
最近更新 更多