Esempio n. 1
0
def run(command, parser, cl_args, unknown_args):
    '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
    return cli_helper.run(command, cl_args, "deactivate topology")
Esempio n. 2
0
def run(command, parser, cl_args, unknown_args):
  '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
  return cli_helper.run(command, parser, cl_args, unknown_args, "activate topology")
Esempio n. 3
0
def run(command, parser, cl_args, unknown_args):
    """ run the update command """
    extra_args = [
        "--component_parallelism", ','.join(cl_args['component_parallelism'])
    ]
    extra_lib_jars = jars.packing_jars()

    return cli_helper.run(command, cl_args, "update topology", extra_args,
                          extra_lib_jars)
Esempio n. 4
0
def run(command, parser, cl_args, unknown_args):
    '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
    Log.debug("Kill Args: %s", cl_args)
    return cli_helper.run(command, cl_args, "kill topology")
Esempio n. 5
0
def run(command, parser, cl_args, unknown_args):
  """ run the update command """
  extra_args = ["--component_parallelism", ','.join(cl_args['component_parallelism'])]
  extra_lib_jars = jars.packing_jars()
  if cl_args["dry_run"]:
    extra_args.append('--dry_run')
    if "dry_run_format" in cl_args:
      extra_args += ["--dry_run_format", cl_args["dry_run_format"]]

  return cli_helper.run(command, cl_args, "update topology", extra_args, extra_lib_jars)
Esempio n. 6
0
def run(command, parser, cl_args, unknown_args):
  '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
  Log.debug("Activate Args: %s", cl_args)
  return cli_helper.run(command, cl_args, "activate topology")
Esempio n. 7
0
def run(command, parser, cl_args, unknown_args):
  """ run the update command """
  extra_args = ["--component_parallelism", ','.join(cl_args['component_parallelism'])]
  extra_lib_jars = jars.packing_jars()
  action = "update topology%s" % (' in dry-run mode' if cl_args["dry_run"] else '')
  if cl_args["dry_run"]:
    extra_args.append('--dry_run')
    if "dry_run_format" in cl_args:
      extra_args += ["--dry_run_format", cl_args["dry_run_format"]]

  return cli_helper.run(command, cl_args, action, extra_args, extra_lib_jars)
Esempio n. 8
0
def run(command, parser, cl_args, unknown_args):
  '''
  :param command:
  :param parser:
  :param cl_args:
  :param unknown_args:
  :return:
  '''
  container_id = cl_args['container-id']
  extra_args = ["--container_id", str(container_id)]

  return cli_helper.run(command, cl_args, "restart topology", extra_args=extra_args)
Esempio n. 9
0
def run(command, parser, cl_args, unknown_args):
  """ run the update command """
  extra_args = ["--component_parallelism", ','.join(cl_args['component_parallelism'])]
  extra_lib_jars = jars.packing_jars()

  return cli_helper.run(command, cl_args, "update topology", extra_args, extra_lib_jars)