Hi Alexander, Thanks for your help. Also I am not an expert.
In my cluster (4 machines) I define as following: In master file in all the machines I define two of the machines as Master and SecondaryNameNode And in slave file in all the machines, I define the other two machines as Datanode1 and DataNode2. I don't know if Master and SecondaryNameNode can also defined as slaves or if it is better to define the SecondaryNameNode as slave instead of master. Thanks