【问题标题】:MasterNotDiscoveredException in Elastic Search when creating an index创建索引时 Elastic Search 中的 MasterNotDiscoveredException
【发布时间】:2012-01-04 07:16:38
【问题描述】:

我已按照简单教程在干净的 debian lenny 机器上安装 elastic-search:

http://www.elasticsearch.org/tutorials/2010/07/02/setting-up-elasticsearch-on-debian.html

但是,当尝试使用映射创建索引时:

curl -XPUT "localhost:9200/searchdata" -d @index.json

我收到此错误:

{"error":"MasterNotDiscoveredException[]","status":500}

我在另一个 ES 实例上使用了index.json,所以我知道它可以工作。我假设我缺少 ES 配置文件中的某些内容。目前我有这个:

cluster:
  name:   MyCluster

network:
  host:   _eth0_

由于 ES 的文档非常稀缺,我想我会看看是否有人可以引导我找到解决方案。提前致谢。

【问题讨论】:

  • 我不会将示例配置文件称为“稀有”:github.com/elasticsearch/elasticsearch/blob/master/config/…
  • 尝试启动弹性搜索时的输出是什么。我认为您的问题可能是网络主机。如果 ES 启动正确,你会在输出中看到它选择了一个 master。
  • @AndyPryor,我已经搞砸了这么多,我实际上无法重现这个问题。我刚刚回到一个我希望清理并正在使用它的旧实例。我尝试在 debian lenny 上安装 elastic-search 真的很不成功——除了我第一次尝试(我不记得我用了什么教程)。我什至尝试在 Amazon EC2 上安装,但无法正常工作。

标签: elasticsearch


【解决方案1】:

不确定问题,但全新安装的操作系统修复了它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-08
    • 2020-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-29
    相关资源
    最近更新 更多