Are the "resource manager" and the "hdfs namenode" always installed on the same host?
1) When I want to send an HTTP request (YARN REST API) to get a new application identifier I use this web uri:
http://<rm http address:port>/ws/v1/cluster/apps/new-application
This port is the http port of the resource manager web interface, its default value is 8088, as shown in img1: source for img1 
2) When I want to send an HTTP request (WebHDFS REST API) for hdfs commands, for example, to get the file status I use this web uri:
http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETFILESTATUS
This <PORT> is the http port of the NameNode HTTP node, its default value is 50070, as shown in img2: source for img2 
Are the hosts of these components (ResourceManager and NaneNode) always installed on the same host?
Any help would be appreciated, thanks!
rest apache hadoop yarn webhdfs
Xquery
source share