spring-attic / spring-xd-ambari

Apache Ambari integration for Spring XD
Apache License 2.0
9 stars 18 forks source link

Add support for hdfs ha config #7

Closed jvalkeal closed 9 years ago

jvalkeal commented 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

ysung-pivotal commented 9 years ago

You can detect if namenode ha is enabled by the following.

nn_ha_enabled=config['configurations']['hdfs-site'].get('dfs.nameservices')

jvalkeal commented 9 years ago

merged per https://github.com/spring-projects/spring-xd-ambari/commit/6c76de629feb684e38d600c0786cb33e476cd761, closing