Support Questions

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

Both NameNodes are StandBy

avatar

capture.png

I'm running on HDP 2.3 hosted on AWS and Ambari version is 2.1

NameNode HA is enabled and I can see two name nodes as active in the Ambari. Attached screenshot for reference.

ZookeeperFailControllers are running fine.

When I Start HDFS from command line using the below command, the namenode service on the node from which I execute the command is working and causing the other name node to stop.

sudo -u hdfs /usr/hdp/2.3.6.0-3796/hadoop/sbin/hadoop-daemon.sh start namenode

I formatted Zookeeper and restartwed HDFS, still no luck.

When I open zkCli and checked, there is no ActiveStandbyElectorLock and I found the ephermal node value as 0*0

Any help would be appreciated.

Thanks,

Sai Dileep.

5 REPLIES 5

avatar

@Jay SenSharma Any idea ?

Thanks in Advance.

avatar
Contributor

i am also having the same issue... can you help me out

avatar
Explorer

Please refer to api calls in the following thread to check ha_state of the name node and make sure it is correctly set. If not, please attach the response and we can look into the problem further.

https://community.hortonworks.com/questions/39005/activestandby-for-ha-components.html

avatar

The best solution is to stop all the services and start Zookeeper only. And then go to CLI where your namenode is present. Run the command => hdfs zkfc -formatZK (you'll be asked for an option as Y or N, input Y) and through ambari start all the services again. Your Namenode will be in Active-Standby mode again!

avatar
Contributor
@Abhinav Phutela

Thank's for your suggestion, it's worked fine for me