Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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)
def show(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
      deploy_utils.show_job("zookeeper", args.zookeeper_config,
        hosts[host_id].ip, "zookeeper", instance_id)
Exemplo n.º 5
0
def show(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
      deploy_utils.show_job("zookeeper", args.zookeeper_config,
        hosts[host_id].ip, "zookeeper", instance_id)
Exemplo n.º 6
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)
Exemplo n.º 7
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
        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
                deploy_utils.show_job("hbase", args.hbase_config, hosts[host_id].ip, job_name, instance_id)
Exemplo n.º 8
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
    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
        deploy_utils.show_job("yarn", args.yarn_config,
          hosts[host_id].ip, job_name, instance_id)
Exemplo n.º 9
0
def show_job(args, host, job_name, instance_id):
  deploy_utils.show_job("yarn", args.yarn_config, host, job_name, instance_id)
Exemplo n.º 10
0
def show_job(args, host, job_name, instance_id):
  deploy_utils.show_job("kafka", args.kafka_config, host, job_name, instance_id)
Exemplo n.º 11
0
def show_job(args, host, job_name, instance_id):
  deploy_utils.show_job("hbase", args.hbase_config, host, job_name, instance_id)
Exemplo n.º 12
0
def show_job(args, host, job_name, instance_id):
    deploy_utils.show_job("impala", args.impala_config, host, job_name, instance_id)
Exemplo n.º 13
0
def show_job(args, host, job_name, instance_id):
    deploy_utils.show_job("hdfs", args.hdfs_config, host, job_name,
                          instance_id)
Exemplo n.º 14
0
def show_job(args, host, job_name, instance_id):
  deploy_utils.show_job("storm", args.storm_config, host, job_name, instance_id)
Exemplo n.º 15
0
def show_job(args, host, job_name, instance_id):
    deploy_utils.show_job("kafka", args.kafka_config, host, job_name,
                          instance_id)
Exemplo n.º 16
0
def show_job(args, host, job_name, instance_id):
    deploy_utils.show_job("impala", args.impala_config, host, job_name,
                          instance_id)