I am not able to see my nodes when I do yarn node -list
, even though I have configured /etc/hadoop/conf/yarn-site.xml
with the correct properties (it seems to me, at least according to this question Slave nodes not in Yarn ResourceManager).
Here's what I've done so far:
- installed
resourcemanager
on the master - installed
nodemanager
on the slaves checked
yarn-site.xml
for this on ALL the nodes:<property> <name>yarn.resourcemanager.hostname</name> <value>master-node</value> </property>
after modifying the config file, restarted
resourcemanager
andnodemanager
on the master and slaves, respectively.
But yet when I do yarn node -list
I only see
Total Nodes: 0
Node-Id Node-state Node-Http-Address Number-of-Running-Containers
At my nodes, I looked at the .out
files in /var/log/hadoop-yarn/
and I see this in them:
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 244592
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 32768
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 65536
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
EDIT:
when I look at the .log
files I see the following, but I'm not sure how to fix it:
INFO org.apache.hadoop.service.AbstractService: Service NodeManager failed in state STARTED; cause:
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: <master node ip>:8020:8031 (configuration property 'yarn.resourcemanager.resource-tracker.address')
Caused by: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: <master node ip>:8020:8031 (configuration property 'yarn.resourcemanager.resource-tracker.address')
How do I connect my slave nodes to my master node?