Check YARN System Status
ubuntu@rm:~$ yarn node -list -all
17/12/12 04:11:12 INFO client.RMProxy: Connecting to ResourceManager at rm/172.16.1.201:8032
17/12/12 04:11:13 INFO client.AHSProxy: Connecting to Application History server at rm/172.16.1.201:10200
Total Nodes:2
Node-Id Node-State Node-Http-Address Number-of-Running-Containers
dn01:38205 RUNNING dn01:8042 0
dn02:46760 RUNNING dn02:8042 0
Check Node Status
ubuntu@rm:~$ yarn node -status dn01:38205
17/12/12 04:12:10 INFO client.RMProxy: Connecting to ResourceManager at rm/172.16.1.201:8032
17/12/12 04:12:10 INFO client.AHSProxy: Connecting to Application History server at rm/172.16.1.201:10200
Node Report :
Node-Id : dn01:38205
Rack : /default-rack
Node-State : RUNNING
Node-Http-Address : dn01:8042
Last-Health-Update : Tue 12/Dec/17 04:11:01:347UTC
Health-Report :
Containers : 0
Memory-Used : 0MB
Memory-Capacity : 8192MB
CPU-Used : 0 vcores
CPU-Capacity : 8 vcores
Node-Labels :
Resource Utilization by Node : PMem:469 MB, VMem:469 MB, VCores:0.61646116
Resource Utilization by Containers : PMem:0 MB, VMem:0 MB, VCores:0.0
Adjust resource configuration per real physical resource
ubuntu@rm:~$ sudo vi /opt/hadoop-2.8.2/etc/hadoop/yarn-site.xml
Added
:::
<property>
<name>yarn.nodemanager.resource.memory-mb</name>
<value>1024</value>
</property>
<property>
<name>yarn.nodemanager.resource.cpu-vcores</name>
<value>2</value>
</property>
Added
:::
<property>
<name>yarn.nodemanager.resource.memory-mb</name>
<value>1024</value>
</property>
<property>
<name>yarn.nodemanager.resource.cpu-vcores</name>
<value>2</value>
</property>
Eof
沒有留言:
張貼留言