Enable yarn as a resource management framework
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
<configuration>
<!--Site specific YARN configuration Properties-->
Enable High Availability
<property>
<name>yarn.resourcemanager.ha.enabled</name>
<value>true</value>
</property>
Define the name of the cluster
<property>
<name>yarn.resourcemanager.cluster-id</name>
<value>cluster1</value>
</property>
assigning aliases to Resourcesmanager
<property>
<name>yarn.resourcemanager.ha.rm-ids</name>
<value>rm1,rm2</value>
</property>
<property>
Specify the server ID for the alias
<name>yarn.resourcemanager.hostname.rm1</name>
<value>bigdatastorm</value>
</property>
<property>
<name>yarn.resourcemanager.hostname.rm2</name>
<value>bigdatahadoop</value>
</property>
<property>
Specify Zookeeper Server
<name>yarn.resourcemanager.zk-address</name>
<value>bigdataspark:2181,bigdatacloud:2181,bigdatahadoop:2181</value>
</property>
Enable the Mapreducer shuffle feature
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
</configuration>