HADOOP / YARN - Are the ResourceManager and the hdfs NameNode always installed on the same host?
It is not necessary to run resourceManager and nameNode on a single machines, we have such configuration when working in a single node/small cluster---with few nodes---configuration. When there is large cluster, master nodes usually run resourceManager, nameNode and secondaryNamenode on different machines.
Have a look at these links: