【问题标题】:Install marvel plugin for Elasticsearch为 Elasticsearch 安装 Marvel 插件
【发布时间】:2014-06-29 13:40:35
【问题描述】:

我下载了elasticsearch 1.1.0版本,运行良好。我想安装 marvel 插件,所以我从 elasticsearch 主目录运行以下命令(就像在 http://www.elasticsearch.org/guide/en/marvel/current/#_simple_install 的官方教程中所说的那样):

bin\plugin -i elasticsearch/marvel/latest

但我收到以下错误:

-> Installing elasticsearch/marvel/latest...
Trying http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip.
..
Trying http://search.maven.org/remotecontent?filepath=elasticsearch/marvel/lates
t/marvel-latest.zip...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/elas
ticsearch/marvel/latest/marvel-latest.zip...
Trying https://github.com/elasticsearch/marvel/archive/vlatest.zip...
Trying https://github.com/elasticsearch/marvel/archive/master.zip...
Failed to install elasticsearch/marvel/latest, reason: failed to download out of
 all possible locations..., use -verbose to get detailed information

这就是我使用 -verbose 时得到的结果:

-> Installing elasticsearch/marvel/latest...
Trying http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip.
..
Failed: UnknownHostException[download.elasticsearch.org]
Trying http://search.maven.org/remotecontent?filepath=elasticsearch/marvel/lates
t/marvel-latest.zip...
Failed: UnknownHostException[search.maven.org]
Trying https://oss.sonatype.org/service/local/repositories/releases/content/elas
ticsearch/marvel/latest/marvel-latest.zip...
Failed: UnknownHostException[oss.sonatype.org]
Trying https://github.com/elasticsearch/marvel/archive/vlatest.zip...
Failed: UnknownHostException[github.com]
Trying https://github.com/elasticsearch/marvel/archive/master.zip...
Failed: UnknownHostException[github.com]
Failed to install elasticsearch/marvel/latest, reason: failed to download out of
 all possible locations..., use -verbose to get detailed information

【问题讨论】:

  • 我也遇到了同样的问题。您会认为我们都关注的getting started guide 是准确的! :(
  • 注意:这篇文章来自 2014 年。自 2015 年底以来,随着 Elasticsearch 2.0 的发布,Elasticsearch 中的插件系统发生了变化。请寻找更新的版本或询问新版本(并指出任何“欺骗”)!
  • 说真的 - 我是该页面的第 25,000 位查看者?也许弹性应该改进他们插件的搜索功能

标签: elasticsearch-marvel


【解决方案1】:

您可以尝试使用网络浏览器访问地址http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip。如果您可以通过这种方式下载 marvel-latest.zip,那么您可以在 elasticsearch 目录下手动创建 plugins 目录,然后将 marvel-latest.zip 文件解压缩到 plugins 目录中,即 zip 内容应该转到 ElasticSearch 主目录下的 plugins\marvel 目录。

一定要把解压后的目录从marvel-latest重命名为marvel,这样地址就可以了

http://any-server-in-cluster:9200/_plugin/marvel/

建议在教程中工作。

在使用 ElasticSearch 1.1.1 版时,我遇到了与您类似的问题。

bin\plugin -i elasticsearch/marvel/latest

命令给出了 FileNotFound 错误,尽管使用网络浏览器我能够下载插件并使其工作。

【讨论】:

  • 感谢您的回答,我进行了手动安装,并且成功了。
  • 我得到了未知的许可证和奇迹插件。我正在使用 powershell 管理员。我在使用这个命令./elasticsearch-plugin.bat install elasticsearch\license\latest的弹性搜索的bin文件夹中。
  • 漫威被x-pack取代了吗?因为我可以使用上面的命令安装 x-pack。
【解决方案2】:

这适用于 Elasticsearch 2.0+ 和 Kibana 4.2+ 根据https://www.elastic.co/downloads/marvel

第 1 步:将 Marvel 安装到 Elasticsearch:

/path/to/elasticsearch/bin/./plugin install license

/path/to/elasticsearch/bin/./plugin install marvel-agent


第 2 步:将 Marvel 安装到 Kibana 中

/path/to/kibana/bin/./kibana plugin --install elasticsearch/marvel/latest


第 3 步:启动 Elasticsearch 和 Kibana

/path/to/elasticsearch/bin/./elasticsearch

/path/to/kibana/bin/./kibana


第 4 步:导航至http://localhost:5601/app/marvel


第 5 步:将 Sense 安装到 Kibana:

/path/to/kibana/bin/./kibana plugin --install elastic/sense

【讨论】:

    【解决方案3】:

    这对我有用:

    cd /usr/share/elasticsearch/bin
    ./plugin -i elasticsearch/marvel/latest
    

    输出:

    -> Installing elasticsearch/marvel/latest...
    Trying http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip...
    Downloading ........................................DONE
    Installed elasticsearch/marvel/latest into /usr/share/elasticsearch/plugins/marvel
    

    编辑:许可证安装

    ./plugin -i elasticsearch/license/latest
    

    【讨论】:

      【解决方案4】:

      以管理员身份运行你的 CMD,最新的 marvel 下载将开始。

      【讨论】:

      • 其实,我发现这是问题的准确答案。
      • 能否详细说明步骤?我收到错误'bin' is not recognized as an internal or external command,operable program or batch file.
      【解决方案5】:

      您可以在此处访问更多 Elasticsearch 插件:https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-plugins.html

      安装用于 Elasticsearch 的插件保存在文件夹“../usr/share/elasticsearch”中(默认情况下)。

      要安装 Marvel 插件,您可以:

      cd ../usr/share/elasticsearch
      bin/plugin -i elasticsearch/marvel/latest
      

      访问地址:https://www.elastic.co/guide/en/marvel/current/_installation.html

      【讨论】:

      • 如果您想安装其他插件,您也可以这样做,例如:cd ../usr/share/elasticsearch bin/plugin -i plugin-name
      【解决方案6】:

      如果您落后于代理,请尝试使用代理运行。 转到您的 elasticsearch 安装路径。

      就我而言 > /usr/share/elasticsearch

      cd /usr/share/elasticsearch
      
      bin/plugin -DproxyPort=<porxyPort> -DproxyHost=<proxyHostDNSorIP> install license
      
      bin/plugin -DproxyPort=<porxyPort> -DproxyHost=<proxyHostDNSorIP> install shield
      

      【讨论】:

        【解决方案7】:

        您可以尝试手动安装。以下是步骤-

        1. 从这里下载-https://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip
        2. 将其放入您的服务器。
        3. cd 路径/到/elasticsearch-1.x.x
        4. bin/plugin -i marvel -u file:///Path/where/you/placed/marvel-latest.zip
        5. 重新启动弹性搜索。
        6. 在任何现代浏览器中输入http://any-server-in-cluster:9200/_plugin/marvel/

        【讨论】:

          猜你喜欢
          • 2020-01-04
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2013-01-06
          • 1970-01-01
          • 2014-04-23
          • 1970-01-01
          相关资源
          最近更新 更多