Modifying the yarn-site.xml File

Edit the yarn-site.xml file and add the following properties:
Property Value
yarn.resourcemanager.hostname

<hostname> of the node running ResourceManager

(qa-node112.qa.lab in the example)

yarn.resourcemanager.keytab /opt/mapr/conf/mapr.keytab
yarn.resourcemanager.principal

<hostname>@<realm>

(qa-node112.qa.lab@PERF.LAB in the example)

yarn.nodemanager.keytab /opt/mapr/conf/mapr.keytab
yarn.nodemanager.principal

<hostname>@<realm>

(qa-node112.qa.lab@PERF.LAB in the example)

yarn.nodemanager.container-executor.class org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor
yarn.nodemanager.linux-container-executor.group mapr

Sample yarn-site.xml File

<property>
  <name>yarn.resourcemanager.hostname</name>
  <value>qa-node112.qa.lab</value>
  <description>host is the hostname of the resourcemanager</description>
</property>
 
<property>
  <name>yarn.resourcemanager.keytab</name>
  <value>/opt/mapr/conf/mapr.keytab</value>
</property>
 
<property>
  <name>yarn.resourcemanager.principal</name>
  <value>mapr/qa-node112.qa.lab@PERF.LAB</value>
</property>
 
<property>
  <name>yarn.nodemanager.keytab</name>
  <value>/opt/mapr/conf/mapr.keytab</value>
</property>
 
<property>
  <name>yarn.nodemanager.principal</name>
  <value>mapr/qa-node112.qa.lab@PERF.LAB</value>
</property>
 
<property>
  <name>yarn.nodemanager.container-executor.class</name>
  <value>org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor</value>
</property>
 
<property>
  <name>yarn.nodemanager.linux-container-executor.group</name>
  <value>mapr</value>
</property>