

@cu.cloudera_cmd
def format_namenode(self, hdfs_service):
    for nn in hdfs_service.get_roles_by_type('NAMENODE'):
        (yield hdfs_service.format_hdfs(nn.name)[0])

dataset/ETHPy150Open openstack/sahara/sahara/plugins/cdh/v5/cloudera_utils.py ClouderaUtilsV5.format_namenode/original