def write_topology_data(instance): util.write_file(instance, data_path, topology_map, owner="root") util.write_file(instance, script_path, script, mode="+x", owner="root")
def write_config_files(instance, config_files): for file in config_files: util.write_file(instance, file.path, file.data, mode=file.mode, owner="mapr")
def write_config_files(instance, config_files): for file in config_files: util.mkdir(instance, os.path.dirname(file.path), owner="root") util.write_file(instance, file.path, file.data, mode=file.mode, owner="root")
def _write_slaves_list(self, cluster_context): path = '%s/slaves' % self.conf_dir(cluster_context) data = self._generate_slaves_file(cluster_context) master = cluster_context.get_instance(SPARK_MASTER) g.write_file(master, path, data, owner='root') LOG.debug("Spark slaves list successfully written.")
def write_config_files(instance, config_files): for path, data in six.iteritems(config_files): util.mkdir(instance, os.path.dirname(path), owner="root") util.write_file(instance, path, data, owner="root")
def _write_slaves_list(self, cluster_context): path = '%s/slaves' % self.conf_dir(cluster_context) data = self._generate_slaves_file(cluster_context) master = cluster_context.get_instance(SPARK_MASTER) g.write_file(master, path, data, owner='root')