1. 程式人生 > >elasticsearch 叢集無法啟動出現如下提示 failed to send join request to master

elasticsearch 叢集無法啟動出現如下提示 failed to send join request to master

[node-2] failed to send join request to master [{node-1}{WbcP0pC_T32jWpYvu5is1A}{2_LCVHx1QEaBZYZ7XQEkMg}{10.10.11.200}{10.10.11.200:9300}], reason [RemoteTransportException[[node-1][10.10.11.200:9300][internal:discovery/zen/join]]; nested: IllegalArgumentException[can't add node {node-2}{WbcP0pC_T32jWpYvu5is1A}{p-HCgFLvSFaTynjKSeqXyA}{10.10.11.200}{10.10.11.200:9301}, found existing node {node-1}{WbcP0pC_T32jWpYvu5is1A}{2_LCVHx1QEaBZYZ7XQEkMg}{10.10.11.200}{10.10.11.200:9300} with the same id but is a different node instance]; ]

原因是:是因為複製的elasticsearch資料夾下包含了data檔案中示例一的節點資料,需要把示例二data檔案下的檔案清空。

刪除es叢集data資料庫資料夾下所有檔案即可