Hello, Alina;
I am sure you have to have both in a single-node cluster. Without a master node, the cluster will not form (no cluster management), and without a data node, shards will remain unassigned (no node to store them).
Cheers,
woodenmo
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.