Support Questions

Find answers, ask questions, and share your expertise

How tobuse namenode address when there is high availability

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 .


@Anurag Mishra

You'd need to add the properties mentioned in this doc :

Post this you can directly use the nameservice and the failover of NN shouldn't be a problem.

Hope this helps.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.