That's what I want to achieve. Maintain only one master node, which would be 02 instead of 01. I haven't found anything in the documentation related to this tag movement between nodes.
Because this is not recommended for production nor officially supported.
A 2 node cluster is not resilient and can only have one node as master, so it does not make sense to switch a master node in this configuration.
If your cluster is running without any issue and is green, it may work to shutdown both nodes, change the role, and start them again, but you would need to test it yourself.
Also, make sure you have a backup in the case something goes wrong.
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.