Using Central Configuration with Manual and Automatic Failover

About this task

When you configure manual or automatic failover for the ResourceManager, the contents of the yarn-site.xml configuration file are slightly different on each ResourceManager node as the value of the yarn.resourcemanager.ha.id property is distinct for each ResourceManager node. If your cluster is using the central configuration feature, configure central configuration overrides for each ResourceManager node:

Procedure

  1. Keep a central copy of the file at /var/mapr/configuration/default/hadoop/hadoop-2.x/etc/hadoop/yarn-site.xml.
  2. Configure central configuration overrides in the following manner:
    /var/mapr/configuration/nodes/<HOSTNAME FOR RM 1>/hadoop/hadoop-2.x/etc/hadoop/yarn-site.xml /var/mapr/configuration/nodes/<HOSTNAME FOR RM 2>/hadoop/hadoop-2.x/etc/hadoop/yarn-site.xml /var/mapr/configuration/nodes/<HOSTNAME FOR RM 3>/hadoop/hadoop-2.x/etc/hadoop/yarn-site.xml