2017-09-24 27 views
1

ElasticSearch [5.4.1] 1,我们有一些指标像ics_pcs_2017.06.06 2,我们删除一些旧索引使用java的代码: getClient.admin 。().indices()prepareDelete(INDEXNAME).execute()actionGet()未能穿上指数映射崩溃elasticsearch [5.4.1]

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. 

会一些帮助和解释原因,非常感谢。

回答

0

当映射到给定文档的字段时出现错误时会发生此类错误。 与ES-5.4类似: - 当您尝试映射“字符串”时,会发生这种情况,因为在ES词汇中,“字符串”被称为“关键字”。 更多关于这篇文章

Mapping change

在你的情况下,服务器第一次尝试做的映射,而在尝试过程中,它给超时消息了。

我的建议:解决映射和分析器问题。