Dedicated master nodes do very little work, so having a full host for just a master node would be wasting resources. Each server should therefore have a node that holds data. As you always want at least 3 master eligible nodes in a cluster, having all of them be master eligible is fine as long as you set minimum_master_nodes set to 5. You can also choose to have only 3 of them be master eligible or possibly even host a separate small dedicated master node on 3 of the servers.
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.