Hi All,

I am using Hadoop 2.7.1. I have 4 vms(dev, sut-1, sut-2, sut3), but I cannot 
submit my app to YARN. very appreciate for any help:)


what I did is:


Add this to yarn-site.xml file:
<property>
   <name>yarn.node-labels.enabled</name>
   <value>true</value>
</property>
<property>
   <name>yarn.node-labels.fs-store.root-dir</name>
   <value>file:///tmp/</value>
</property>


Add this to capacity-scheduler.xml file:
<property>
   <name>yarn.scheduler.capacity.root.default.accessible-node-labels</name>
   <value>aaa</value>
</property>




1. bin/yarn rmadmin -addToClusterNodeLabels aaa
2. bin/yarn rmadmin -replaceLabelsOnNode sut-1=aaa
3. bin/yarn rmadmin -refreshQueues




the command I was trying to submit is:
bin/hadoop jar 
share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.1.jar 
org.apache.hadoop.yarn.applications.distributedshell.Client --jar 
share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.1.jar 
--shell_command ls -node_label_expression aaa 


Thanks,
Allen

Reply via email to