def check_journalnode_all_started(args): job = args.hdfs_config.jobs["journalnode"] hosts = job.hosts for host_id in hosts.iterkeys(): for instance_id in range(hosts[host_id].instance_num): if not deploy_utils.check_service(hosts[host_id].ip, service_config.get_base_port(job.base_port, instance_id)): return False return True
def check_journalnode_all_started(args): job = args.hdfs_config.jobs["journalnode"] hosts = job.hosts for host_id in hosts.iterkeys(): for instance_id in range(hosts[host_id].instance_num): if not deploy_utils.check_service( hosts[host_id].ip, service_config.get_base_port(job.base_port, instance_id)): return False return True
def get_base_port(base_port, instance_id): return service_config.get_base_port(base_port, instance_id)