I am running hadoop HA cluster and name nodes keep switching. I am trying to use HDFS as deep storage and but If I give namenodes Ip address, unless names switch happens it works well but if it goes in standby it fails to write data. I tried giving the service name in HDFS URL but realtime node cannot resolve the host with service name. I gave site.xml in the classpath but still same error.
Any help on how I can achieve that?