Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How does nameservice id works for HA, how does it resolve active NameNode?

avatar
New Contributor

As client has nothing to do which namenode is active, nameservice automatically transfers client requests to active namenode. So how does it resolve which NN is active.

1 ACCEPTED SOLUTION

avatar
Champion
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
3 REPLIES 3

avatar
Champion

The pre-requistes of configuring HA is zookeeper and FailoverController . 

then you should provide the type of  fencing for proof of concept you can  use shell 

 

 dfs.ha.fencing.methods 

 znode in ZooKeeper will be used by failover controllers to keep track of the active and standby nodes, and start the failover controllers if necessary . However you can also perform manual failover for any maintance activity . 

 

 

 

avatar
New Contributor

Thanks for the response. But my question is how does nameservice id resolve the active namenode. Whenever a query is submitted, client has no idea about active namenode, nameservice id directs it to active namenode. so the question is how does it resolve the active one. To put it more simple how does name resolution works in HA.

avatar
Champion
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login