Database Reference
In-Depth Information
Configuring automatic failover for jobtracker high
availability
To configure automatic failover, use the following steps:
1. Add the following properties to mapred-site.xml and copy it to all the nodes
in the cluster:
<property>
<name>mapred.ha.automatic-failover.enabled</name>
<value>true</value>
</property>
<property>
<name>mapred.ha.zkfc.port</name>
<value>8018</value>
</property>
2. Add the following property to core-site.xml file and copy it to all the nodes
in the cluster:
<property>
<name>ha.zookeeper.quorum</name>
<value>node3.hcluster:2181, node4.hcluster:2181,
node5.hcluster:2181 </value>
</property>
3. Initialize the HA state of the jobtracker in ZooKeeper using one of the following
commands:
$ sudo service hadoop-0.20-mapreduce-zkfc init
$ sudo -u mapred hadoop mrzkfc -formatZK
4. Enable automatic failover by starting the ZooKeeper failover controller and the
HA jobtracker on the jobtracker nodes using the following commands:
$ sudo service hadoop-0.20-mapreduce-zkfc start
$ sudo service hadoop-0.20-mapreduce-jobtrackerha start
Search WWH ::




Custom Search