Exemplo n.º 1
0
def task_scheduler_jars():
    '''
    Get the packing algorithm jars
    :return:
    '''
    jars = [os.path.join(config.get_twister2_lib_dir(), "*")]
    return jars
Exemplo n.º 2
0
def uploader_jars():
    '''
    Get the uploader jars
    :return:
    '''
    jars = [os.path.join(config.get_twister2_lib_dir(), "*")]
    return jars
Exemplo n.º 3
0
def statemgr_jars():
    '''
    Get the statemgr jars
    :return:
    '''
    jars = [os.path.join(config.get_twister2_lib_dir(), "*")]
    return jars
Exemplo n.º 4
0
def resource_scheduler_jars():
    '''
    Get the scheduler jars
    :return:
    '''
    jars = [os.path.join(config.get_twister2_lib_dir(), "*")]
    return jars
Exemplo n.º 5
0
def job_jars():
    '''
    Get the job jars
    :return:
    '''
    jars = [os.path.join(config.get_twister2_lib_dir(), "*")]
    return jars
Exemplo n.º 6
0
def run(command, parser, command_args, unknown_args):
    print("Restarting JOB...")
    job_file_name = os.path.join(config.get_twister2_lib_dir(), "librestarter-java.jar")
    print(job_file_name)

    command_args["job-file-name"] = job_file_name
    command_args["job-type"] = "jar"
    command_args["job-class-name"] = "edu.iu.dsc.tws.restarter.CheckpointedJobRestarter"

    return submit.run(command, parser, command_args, [command_args['job-id']])
Exemplo n.º 7
0
def run(command, cl_args, action, extra_args=[], extra_lib_jars=[]):
    print("Starting dashboard...")

    result = execute.twister2_jar(os.path.join(
        config.get_twister2_lib_dir(), "twister2-dash-server_springboot.jar"),
                                  args=extra_args)

    err_msg = "Failed to start dashboard"
    succ_msg = "Successfully started dashboard"
    result.add_context(err_msg, succ_msg)
    return result
Exemplo n.º 8
0
def run(command, cl_args, action, extra_args=[], extra_lib_jars=[]):
    print("Starting dashboard...")
    spring_config = os.path.join(config.get_twister2_conf_dir(), "dashboard",
                                 "application.properties")
    log4j2 = os.path.join(config.get_twister2_conf_dir(), "dashboard", "log4j2.xml")
    jvm_args = []
    jvm_args.append(
        "-Dspring.config.location=file://" + spring_config
    )
    jvm_args.append(
        "-Dlog4j.configurationFile=" + log4j2
    )
    print(jvm_args)
    result = execute.twister2_jar(
        os.path.join(config.get_twister2_lib_dir(), "twister2-dash-server_springboot.jar"),
        args=extra_args,
        jvm_args=jvm_args
    )

    err_msg = "Failed to start dashboard"
    succ_msg = "Successfully started dashboard"
    result.add_context(err_msg, succ_msg)
    return result