Exemple #1
0
def wait_for_failover_to_complete(namenode):
    """
    Inspects the name node logs to make sure ZK signals a complete failover.
    The given namenode is the one to become active after the failover is complete.
    """
    status = config.get_name_node_status(config.SERVICE_NAME, namenode)
    return status == "active"
Exemple #2
0
 def failover_detection():
     status = config.get_name_node_status(config.SERVICE_NAME, namenode)
     return status == "active"