2017-09-24 325 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

在你的情況下,服務器第一次嘗試做的映射,而在嘗試過程中,它給超時消息了。

我的建議:解決映射和分析器問題。