Although it MAY be possible it is not recommended. You should also always aim to have 3 master eligible nodes in every cluster. One problem with this type of mix that I can foresee is that you will not be able to take snapshots to a shared file system as the path need to be the same across all nodes. Why are you looking to do this?
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.