Converting MapReduce from the Single Instance Mode to the HA Mode

Scenario

The JobHistoryServer service of MapReduce is a single instance, or the single instance is used to install the MapReduce service during cluster installation. To avoid the MapReduce single point of failure (SPOF) problem, you can enable JobHistoryServer HA to ensure high availability of the MapReduce service.

Impact on the System

Procedure

  1. Log in to Manager, choose Cluster > Name of the desired cluster > Services > MapReduce > Configurations to go to the configuration page of the MapReduce service.
  2. Change the value of JHS_FLOAT_IP to an available floating IP address and click Save. On the displayed dialog box, click OK.
  3. Choose Instance > Add Instance, select a node, and choose Next > Next > Submit. The instance is successfully added.
  4. On the Manager home page, click next to the name of the target cluster and select Restart Configuration-Expired Instances. The instance is restarted successfully.
  5. View the restarted instances. For example, the active and standby instances of MapReduce are normally displayed and run properly.