在部署 ElasticSearch7.x 時,啟動節點報錯
Caused by: org.elasticsearch.xpack.monitoring.exporter.ExportException: failed to flush export bulk [default_local]
Caused by: java.lang.IllegalStateException: There are no ingest nodes in this cluster, unable to forward request to an ingest node.
報錯分析
1. 缺少 ingest 節點
2. 創建monitor相關索引時,需要調用 bulk api
添加 ingest 節點后的日志記錄
[2021-11-11T14:42:18,133][INFO ][o.e.c.m.MetadataCreateIndexService] [es_10.162.17.15_9253]
[.monitoring-es-7-2021.11.11] creating index, cause [auto(bulk api)],
templates [.monitoring-es], shards [1]/[0]