Created
October 29, 2012 12:28
-
-
Save zygm0nt/3973262 to your computer and use it in GitHub Desktop.
Changes needed for CDH4 HA - Quorum based
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property> | |
<name>fs.default.name/name> | |
<value>hdfs://example-cluster</value> | |
</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- common server name --> | |
<property> | |
<name>dfs.nameservices</name> | |
<value>example-cluster</value> | |
</property> | |
<!-- HA configuration --> | |
<property> | |
<name>dfs.ha.namenodes.example-cluster</name> | |
<value>nn1,nn2</value> | |
</property> | |
<property> | |
<name>dfs.namenode.rpc-address.example-cluster.nn1</name> | |
<value>master1:8020</value> | |
</property> | |
<property> | |
<name>dfs.namenode.rpc-address.example-cluster.nn2</name> | |
<value>master2:8020</value> | |
</property> | |
<property> | |
<name>dfs.namenode.http-address.example-cluster.nn1</name> | |
<value>0.0.0.0:50070</value> | |
</property> | |
<property> | |
<name>dfs.namenode.http-address.example-cluster.nn2</name> | |
<value>0.0.0.0:50070</value> | |
</property> | |
<!-- Storage for edits' files --> | |
<property> | |
<name>dfs.namenode.shared.edits.dir</name> | |
<value>qjournal://node1:8485;node2:8485;node3:8485/example-cluster</value> | |
</property> | |
<!-- Client failover --> | |
<property> | |
<name>dfs.client.failover.proxy.provider.example-cluster</name> | |
<value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value> | |
</property> | |
<!-- Fencing configuration --> | |
<property> | |
<name>dfs.ha.fencing.methods</name> | |
<value>sshfence</value> | |
</property> | |
<property> | |
<name>dfs.ha.fencing.ssh.private-key-files</name> | |
<value>/home/user/.ssh/id_dsa</value> | |
</property> | |
<!-- Automatic failover configuration --> | |
<property> | |
<name>dfs.ha.automatic-failover.enabled</name> | |
<value>true</value> | |
</property> | |
<property> | |
<name>ha.zookeeper.quorum</name> | |
<value>zk1:2181,zk2:2181,zk3:2181</value> | |
</property> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment