【问题标题】:failed to put mappings on indices crash the elasticsearch [5.4.1]未能在索引上放置映射会使 elasticsearch [5.4.1] 崩溃
【发布时间】:2017-09-25 18:05:24
【问题描述】:

弹性搜索 [5.4.1] 1 我们有一些索引,例如 ics_pcs_2017.06.06 2 我们删除一些旧索引使用的jave代码: getClient.admin().indices().prepareDelete(indexname).execute().actionGet()

I think the index ics_pcs_2017.06.06 will have 60G+ and 100,000,000 documents in it.

3 我们新建一个logstash来接收旧的日志,我们在ES日志中发现: ES 日志信息

create index for ics_pcs_2017.06.06( didn't get the detail log)

.....
[o.e.c.m.MetaDataCreateIndexservice] create index cause [auto(bulk api)], templates[icstemplate],shards [6]/[1], mappings [icslog]

.....
[o.e.c.m.MetaDataCreateIndexservice] [ics_pcs_2017.06.06/xtNoHLSOS4GBQo01-Nprg] update_mapping [icslog]

...
[o.e.a.a.1.m.p.TransportPutMappingAction] [ics-master1] failed to put mappings on indices[[[ics_pcs_2017.06.06/xtNoHLSOS4GBQo01-Nprg]]]
org.elasticsearch.cluster.metada.ProcessClusterEventTimeoutException:failed to process cluster event(put-mapping) within 30s

....
-----------
then there is many logs like  failed to put mappings on indices[[[ics_pcs_2017.06.06/xtNoHLSOS4GBQo01-Nprg]]]
... failed to put mappings on indices[[[ics_pcs_2017.06.06/xtNoHLSOS4GBQo01-Nprg]]]
...failed to put mappings on indices[[[ics_pcs_2017.06.06/xtNoHLSOS4GBQo01-Nprg]]]

and cause the elasticsearch master down.

请大神帮忙解释一下原因,非常感谢。

【问题讨论】:

    标签: elasticsearch crash


    【解决方案1】:

    当映射到给定文档的字段时出现错误时会发生此类错误。 就像 ES-5.4 实例之一:- 当您尝试映射 'string' 时会发生这种情况,因为 ES vocab 'string' 被称为 'keyword'。 更多关于这篇文章

    Mapping change

    在您的情况下,服务器首先尝试进行映射,而在尝试的过程中,它也给出了超时消息。

    我的建议:修复映射和分析器问题。

    【讨论】:

      猜你喜欢
      • 2020-06-28
      • 1970-01-01
      • 1970-01-01
      • 2017-03-11
      • 1970-01-01
      • 1970-01-01
      • 2020-09-23
      • 2021-03-23
      • 1970-01-01
      相关资源
      最近更新 更多