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) )
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)
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)
def create_myid_file(): myid = get_slave_id(env.host_string) run("echo %s > %s/myid" % (myid, conf['data_dir']))
def create_myid_file(): myid = get_slave_id(env.host_string) run("echo %s > %s/myid" % (myid, conf['data_dir']))