Community Articles
Find and share helpful community-sourced technical articles.
Labels (2)

The reason why Ambari is unable to start Namenode smoothly is bug and below is the workaround. Issue got fixed permanently in Ambari 2.5.x.

Few lines of Error message from Ambari Ops logs:

File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/",
line 55, in wrapper  return function(*args,
**kwargs)  File
line 562, in is_this_namenode_active  raise Fail(format("The
NameNode {namenode_id} is not listed as Active or Standby, waiting..."))resource_management.core.exceptions.Fail: The
NameNode nn2 is not listed as Active or Standby, waiting...


Increase the timeout in /var/lib/ambari-server/resources/common-services/HDFS/

from this;
@retry(times=5, sleep_time=5, backoff_factor=2,err_class=Fail)

to this;

@retry(times=25, sleep_time=25, backoff_factor=2,err_class=Fail)
0 Kudos
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.
Version history
Last update:
‎09-19-2017 04:31 AM
Updated by:
Top Kudoed Authors