I am running distcp command to copy the data from one cluster to another cluster . but in the both cluster high availability is enabled for the namenide. As of now I have hard coded address to read the hdfs files and write it back.
but when namenode switch over happens , my distcp job fails since can not read file at standby namenide . active namenode becomes inactive .