YARN Resourcemanager not connecting to nodemanager YARN Resourcemanager not connecting to nodemanager hadoop hadoop

YARN Resourcemanager not connecting to nodemanager


I had a very similar problem, and it was solved just by specifying the ResourceManager hostname, no need to spell out the exact address per service.

<property>  <name>yarn.resourcemanager.hostname</name>  <value>master-1</value></property>


You'll need to specify

hostname:port

Yes, it has to be set on all the nodes, not just the ResourceManager node (You'll be fine just copying the same hadoop's conf dir to all of your nodes). If you need some minimal working configs to get started, take a look here: toster.ru/q/57046#answer_208326


The rsync or scp command can be used to copy the configuration files from the master node to the slave nodes:

for host in $HADOOP_CONF_DIR/slaves; do     rsync -rv $HADOOP_CONF_DIR/* $host:$HADOOP_CONF_DIR/done

Note, here I am assuming all the nodes have the same hadoop directory layout.