Ejemplo n.º 1
0
Archivo: flink.py Proyecto: mxm/yoka
def copy_log_slaves(dest_path):
    path = get_flink_dist_path() + "/log"
    log_file = "flink-*-taskmanager-*"
    for extension in ["log", "out"]:
        copy_log("%s/%s.%s" % (path, log_file, extension),
                 "%s/flink_taskmanager_%s.%s" % (dest_path, get_slave_id(env.host_string), extension)
        )
Ejemplo n.º 2
0
def configure():
    # config
    context = conf.copy()
    context['id'] = get_slave_id(env.host_string)
    context['zookeeper_server'] = [{'name' : name} for name in env.hostnames[0:conf['num_instances']]]
    destination = "%s/%s" % (PATH, "config")
    process_template("kafka", "server.properties.mustache", context, destination)
Ejemplo n.º 3
0
def configure():
    # config
    context = conf.copy()
    context['id'] = get_slave_id(env.host_string)
    context['zookeeper_server'] = [{
        'name': name
    } for name in env.hostnames[0:conf['num_instances']]]
    destination = "%s/%s" % (PATH, "config")
    process_template("kafka", "server.properties.mustache", context,
                     destination)
Ejemplo n.º 4
0
def create_myid_file():
    myid = get_slave_id(env.host_string)
    run("echo %s > %s/myid" % (myid, conf['data_dir']))
Ejemplo n.º 5
0
def create_myid_file():
    myid = get_slave_id(env.host_string)
    run("echo %s > %s/myid" % (myid, conf['data_dir']))