Beispiel #1
0
def show(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():
        deploy_utils.show_job("zookeeper", args.zookeeper_config, hosts[id], "zookeeper")
Beispiel #2
0
def show(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():
    deploy_utils.show_job("zookeeper", args.zookeeper_config,
        hosts[id], "zookeeper")
Beispiel #3
0
def show(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():
            deploy_utils.show_job("yarn", args.yarn_config, hosts[id],
                                  job_name)
Beispiel #4
0
def show(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():
      deploy_utils.show_job("hbase", args.hbase_config,
          hosts[id], job_name)
Beispiel #5
0
def stop(args):
  if not args.skip_confirm:
    deploy_utils.confirm_stop(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():
    stop_job(args, hosts[id], "zookeeper")
Beispiel #6
0
def stop(args):
  if not args.skip_confirm:
    deploy_utils.confirm_stop(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():
    stop_job(args, hosts[id], "zookeeper")
Beispiel #7
0
def stop(args):
    if not args.skip_confirm:
        deploy_utils.confirm_stop(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():
            stop_job(args, hosts[id], job_name)
Beispiel #8
0
def stop(args):
  if not args.skip_confirm:
    deploy_utils.confirm_stop(args)
  get_hbase_service_config(args)

  for job_name in args.job or reversed(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():
      stop_job(args, hosts[id], job_name)
Beispiel #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
    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)
Beispiel #10
0
def restart(args):
    if not args.skip_confirm:
        deploy_utils.confirm_restart(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():
        stop_job(args, hosts[id], "zookeeper")

    for id in args.task or hosts.iterkeys():
        deploy_utils.wait_for_job_stopping("zookeeper", args.zookeeper_config.cluster.name, "zookeeper", hosts[id])
        start_job(args, hosts[id], "zookeeper")
Beispiel #11
0
def restart(args):
  if not args.skip_confirm:
    deploy_utils.confirm_restart(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():
    stop_job(args, hosts[id], "zookeeper")

  for id in args.task or hosts.iterkeys():
    deploy_utils.wait_for_job_stopping("zookeeper",
        args.zookeeper_config.cluster.name, "zookeeper", hosts[id])
    start_job(args, hosts[id], "zookeeper")
Beispiel #12
0
def restart(args):
  if not args.skip_confirm:
    deploy_utils.confirm_restart(args)
  get_hbase_service_config(args)

  for job_name in args.job or reversed(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():
      stop_job(args, hosts[id], job_name)

  for job_name in args.job or ALL_JOBS:
    hosts = args.hbase_config.jobs[job_name].hosts
    for id in args.task or hosts.iterkeys():
      deploy_utils.wait_for_job_stopping("hbase",
          args.hbase_config.cluster.name, job_name, hosts[id])
      start_job(args, hosts[id], job_name)
Beispiel #13
0
def restart(args):
  if not args.skip_confirm:
    deploy_utils.confirm_restart(args)
  get_impala_service_config(args)

  for job_name in args.job or ALL_JOBS:
    hosts = args.impala_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():
      stop_job(args, hosts[id], job_name)

  for job_name in args.job or ALL_JOBS:
    hosts = args.impala_config.jobs[job_name].hosts
    for id in args.task or hosts.iterkeys():
      deploy_utils.wait_for_job_stopping("impala",
          args.impala_config.cluster.name, job_name, hosts[id])
      start_job(args, hosts[id], job_name)