搭建elasticsearch叢集報錯:with the same id but is a different node instance]; ]
阿新 • • 發佈:2018-12-25
記錄一下在安裝 elastic-search 單機多節點是時候報錯解決方案。
[INFO ][o.e.d.z.ZenDiscovery ] [slave-one] failed t o send join request to master [{master}{-S9Jc4AYR-ODB8a8Wj5oCg}{cAR_0nC9RTSAdUcy jnJjLg}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=8479907840, ml.max_open_job s=20, xpack.installed=true, ml.enabled=true}], reason [RemoteTransportException[ [master][127.0.0.1:9300][internal:discovery/zen/join]]; nested: IllegalArgumentE xception[can't add node {slave-one}{-S9Jc4AYR-ODB8a8Wj5oCg}{_r6Xx7QNRIev_hpn6mhd ZQ}{127.0.0.1}{127.0.0.1:9301}{ml.machine_memory=8479907840, ml.max_open_jobs=20 , xpack.installed=true, ml.enabled=true}, found existing node {master}{-S9Jc4AYR -ODB8a8Wj5oCg}{cAR_0nC9RTSAdUcyjnJjLg}{127.0.0.1}{127.0.0.1:9300}{ml.machine_mem ory=8479907840, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true} with the same id but is a different node instance]; ]
報錯提示,關鍵資訊:
with the same id but is a different node instance]; ]
報錯資訊提示有相同的 id 但是是不同的例項。
原因是: 我把作為 master 的 elastic-search 檔案複製了一份,導致資料也包含在了 作為 slave節點裡面。