Hadoop2.2.0 NN HA详细配置+Client透明性试验【完整版(3)

  <name>dfs.client.failover.proxy.provider.myhadoop</name>                        

  <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>

  <description>Configure the name of the Java class which will be used by the DFS Client to determine which NameNode is the current Active, and therefore which NameNode is currently serving client requests. 

这个类是Client的访问代理,是HA特性对于Client透明的关键!

</description>  

</property>  

     

<property>      

  <name>dfs.ha.fencing.methods</name>      

  <value>sshfence</value>  

  <description>how to communicate in the switch process</description>

</property>  

   

<property>      

  <name>dfs.ha.fencing.ssh.private-key-files</name>      

  <value>/home/yarn/.ssh/id_rsa</value>

  <description>the location stored ssh key</description>

</property>  

 

<property>  

  <name>dfs.ha.fencing.ssh.connect-timeout</name>  

  <value>1000</value>  

</property>  

 

<property>  

  <name>dfs.namenode.handler.count</name>  

  <value>8</value>  

</property> 

 

</configuration>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/ea174bfb2795a3813c54c94c11d3da42.html