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_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_topology_data(instance):
     util.write_file(instance, data_path, topology_map, owner="root")
     util.write_file(instance, script_path, script,
                     mode="+x", owner="root")
示例#6
0
文件: spark.py 项目: Imperat/sahara
 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.")
示例#7
0
文件: spark.py 项目: msionkin/sahara
 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.")
示例#8
0
 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")
示例#9
0
 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')
示例#10
0
文件: spark.py 项目: esikachev/sahara
 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')
示例#11
0
 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")