We have a cluster of 2 nodes each with their own volume. On one of the
nodes we accidentally started a second instance which resulted in duplicate
node folders (0 & 1). The instance pointing to the nodes/0 folder was
stopped. So the current instance is pointing to the nodes/1 folder.
How do we rectify this?
Would the following work?
Stop the node
Delete the nodes/0 folder
Rename the nodes/1 folder to nodes/0
Start the node again
Or are we better off stopping the node, remove all its content, and start
it up again so that it syncs from scratch with the second node?
Hi,
Allowing multiple directories in nodes/ by design. From my experience,
you could stop the additional instance when the cluster state is green. But
before doing that, you should make sure the instances are actually in a
same cluster, and find out the correct process, which is using nodes/1 in
your case. If you stop a wrong process, you will find yourself some data missing next time you restart the cluster. The data isn't missing, just
in different nodes/x directory.
We have a cluster of 2 nodes each with their own volume. On one of the
nodes we accidentally started a second instance which resulted in duplicate
node folders (0 & 1). The instance pointing to the nodes/0 folder was
stopped. So the current instance is pointing to the nodes/1 folder.
How do we rectify this?
Would the following work?
Stop the node
Delete the nodes/0 folder
Rename the nodes/1 folder to nodes/0
Start the node again
Or are we better off stopping the node, remove all its content, and start
it up again so that it syncs from scratch with the second node?
Thank you all for the feedback.
Setting node.max_local_storage_nodes to 1 was what we were looking for.
On Wednesday, December 11, 2013 11:36:11 AM UTC+1, Luk Morbee wrote:
Hi,
We have a cluster of 2 nodes each with their own volume. On one of the
nodes we accidentally started a second instance which resulted in duplicate
node folders (0 & 1). The instance pointing to the nodes/0 folder was
stopped. So the current instance is pointing to the nodes/1 folder.
How do we rectify this?
Would the following work?
Stop the node
Delete the nodes/0 folder
Rename the nodes/1 folder to nodes/0
Start the node again
Or are we better off stopping the node, remove all its content, and start
it up again so that it syncs from scratch with the second node?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.