You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Yatong Zhang <bl...@gmail.com> on 2015/01/13 09:07:34 UTC

Hadoop failover doesn't take effect automatically when one namenode down

Hi there,
I am configuring HA hadoop cluster with
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html

Now if I kill the namenode process on one node, the failover can take
effect to make another node active automatically. But if I shutdown a
namenode another namenode couldn't be active automatically.

Here are the hdfs-site.xml:

>     <property>
>         <name>dfs.namenode.name.dir</name>
>         <value>file:///data1/hadoop/hdfs/namenode</value>
>         <description>Path on the local filesystem where the NameNode
> stores the namespace and transaction logs persistently.</description>
>     </property>
>
>     <property>
>         <name>dfs.nameservices</name>
>         <value>yisabigdata</value>
>     </property>
>     <property>
>         <name>dfs.ha.namenodes.yisabigdata</name>
>         <value>namenode1,namenode2</value>
>     </property>
>     <property>
>         <name>dfs.namenode.rpc-address.yisabigdata.namenode1</name>
>         <value>10.0.10.1:8020</value>
>     </property>
>     <property>
>         <name>dfs.namenode.rpc-address.yisabigdata.namenode2</name>
>         <value>10.0.10.2:8020</value>
>     </property>
>     <property>
>         <name>dfs.namenode.http-address.yisabigdata.namenode1</name>
>         <value>10.0.10.1:50070</value>
>     </property>
>     <property>
>         <name>dfs.namenode.http-address.yisabigdata.namenode2</name>
>         <value>10.0.10.2:50070</value>
>     </property>
>     <property>
>         <name>dfs.client.failover.proxy.provider.yisabigdata</name>
>
> <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
>     </property>
>     <property>
>        <name>dfs.ha.automatic-failover.enabled</name>
>        <value>true</value>
>     </property>
>     <property>
>         <name>dfs.namenode.shared.edits.dir</name>
>         <value>qjournal://10.0.10.5:8485;10.0.10.6:8485;10.0.10.7:8485
> ;10.0.10.8:8485;10.0.10.9:8485;10.0.10.10:8485;10.0.10.11:8485/yisabigdata
> </value>
>     </property>
>     <property>
>         <name>dfs.ha.fencing.methods</name>
>         <value>shell(/bin/true)</value>
>     </property>
>