Example #1
0
def start(args):
  if not args.skip_confirm:
    deploy_utils.confirm_start(args)
  get_yarn_service_config(args)

  for job_name in args.job or ALL_JOBS:
    hosts = args.yarn_config.jobs[job_name].hosts
    task_list = deploy_utils.schedule_task_for_threads(args, hosts, job_name, 'start')
    parallel_deploy.start_deploy_threads(start_job, task_list)
Example #2
0
def start(args):
  if not args.skip_confirm:
    deploy_utils.confirm_start(args)
  get_zk_service_config(args)

  hosts = args.zookeeper_config.jobs["zookeeper"].hosts
  if args.host is not None:
    args.task = deploy_utils.get_task_by_hostname(hosts, args.host)
  for id in args.task or hosts.iterkeys():
    start_job(args, hosts[id], "zookeeper")
Example #3
0
def start(args):
  if not args.skip_confirm:
    deploy_utils.confirm_start(args)
  get_zk_service_config(args)

  hosts = args.zookeeper_config.jobs["zookeeper"].hosts
  if args.host is not None:
    args.task = deploy_utils.get_task_by_hostname(hosts, args.host)
  for id in args.task or hosts.iterkeys():
    start_job(args, hosts[id], "zookeeper")
Example #4
0
def start(args):
    if not args.skip_confirm:
        deploy_utils.confirm_start(args)
    get_yarn_service_config(args)

    for job_name in args.job or ALL_JOBS:
        hosts = args.yarn_config.jobs[job_name].hosts
        if args.host is not None:
            args.task = deploy_utils.get_task_by_hostname(hosts, args.host)
        for id in args.task or hosts.iterkeys():
            start_job(args, hosts[id], job_name)
def start(args):
  if not args.skip_confirm:
    deploy_utils.confirm_start(args)
  get_zk_service_config(args)
  hosts = args.zookeeper_config.jobs["zookeeper"].hosts

  args.task_map = deploy_utils.parse_args_host_and_task(args, hosts)
  for host_id in args.task_map.keys() or hosts.keys():
    for instance_id in args.task_map.get(host_id) or range(hosts[host_id].instance_num):
      instance_id = -1 if not deploy_utils.is_multiple_instances(host_id, hosts) else instance_id
      start_job(args, hosts[host_id].ip, "zookeeper", host_id, instance_id)
Example #6
0
def start(args):
  if not args.skip_confirm:
    deploy_utils.confirm_start(args)
  get_zk_service_config(args)
  hosts = args.zookeeper_config.jobs["zookeeper"].hosts

  args.task_map = deploy_utils.parse_args_host_and_task(args, hosts)
  for host_id in args.task_map.keys() or hosts.keys():
    for instance_id in args.task_map.get(host_id) or range(hosts[host_id].instance_num):
      instance_id = -1 if not deploy_utils.is_multiple_instances(host_id, hosts) else instance_id
      start_job(args, hosts[host_id].ip, "zookeeper", host_id, instance_id)
Example #7
0
def start(args):
  if not args.skip_confirm:
    deploy_utils.confirm_start(args)
  get_hbase_service_config(args)

  for job_name in args.job or ALL_JOBS:
    hosts = args.hbase_config.jobs[job_name].hosts
    if args.host is not None:
      args.task = deploy_utils.get_task_by_hostname(hosts, args.host)
    for id in args.task or hosts.iterkeys():
      start_job(args, hosts[id], job_name)
Example #8
0
def start(args):
  if not args.skip_confirm:
    deploy_utils.confirm_start(args)
  get_hdfs_service_config(args)

  for job_name in args.job or ALL_JOBS:
    hosts = args.hdfs_config.jobs[job_name].hosts
    args.task_map = deploy_utils.parse_args_host_and_task(args, hosts)
    for host_id in args.task_map.keys() or hosts.keys():
      for instance_id in args.task_map.get(host_id) or range(hosts[host_id].instance_num):
        instance_id = -1 if not deploy_utils.is_multiple_instances(host_id, hosts) else instance_id
        start_job(args, hosts[host_id].ip, job_name, host_id, instance_id)
Example #9
0
def start(args):
  if not args.skip_confirm:
    deploy_utils.confirm_start(args)
  get_yarn_service_config(args)

  for job_name in args.job or ALL_JOBS:
    hosts = args.yarn_config.jobs[job_name].hosts
    args.task_map = deploy_utils.parse_args_host_and_task(args, hosts)
    for host_id in args.task_map.keys() or hosts.keys():
      for instance_id in args.task_map.get(host_id) or range(hosts[host_id].instance_num):
        instance_id = -1 if not deploy_utils.is_multiple_instances(host_id, hosts) else instance_id
        start_job(args, hosts[host_id].ip, job_name, host_id, instance_id)