Restoring 2 nodes cluster after master goes down


(Nejc Vidrih) #1

I have a 2 node elasticsearch cluster (version 1.7.1), let's call it A and B. A is data node, B is data and master node.
A:

node.master: false
node.data: true
discovery.zen.ping.unicast.hosts: ["A", "B"]

B:

node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["A", "B"]

Node B went down and is not recoverable, node A was working OK until first restart. Now cluster state is 503 and logs show No route to host. If I change node.master: true node status is 200 but all the data is lost. Is there any way to recover data on a single node? I have data directory from node A.


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.