Closed jvalkeal closed 9 years ago
dfs.ha.automatic-failover.enabled=True
dfs.nameservices=mycluster
dfs.client.failover.proxy.provider.mycluster=org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider
dfs.ha.namenodes.mycluster=nn1,nn2
dfs.namenode.rpc-address.mycluster.nn2=ambari-3.localdomain:8020
dfs.namenode.rpc-address.mycluster.nn1=ambari-2.localdomain:8020
You can detect if namenode ha is enabled by the following.
nn_ha_enabled=config['configurations']['hdfs-site'].get('dfs.nameservices')
merged per https://github.com/spring-projects/spring-xd-ambari/commit/6c76de629feb684e38d600c0786cb33e476cd761, closing
dfs.ha.automatic-failover.enabled=True
dfs.nameservices=mycluster
dfs.client.failover.proxy.provider.mycluster=org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider
dfs.ha.namenodes.mycluster=nn1,nn2
dfs.namenode.rpc-address.mycluster.nn2=ambari-3.localdomain:8020
dfs.namenode.rpc-address.mycluster.nn1=ambari-2.localdomain:8020