예제 #1
0
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
예제 #2
0
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)
예제 #4
0
def get_base_port(base_port, instance_id):
    return service_config.get_base_port(base_port, instance_id)