Beispiel #1
0
 def update_mapred_site_config(self, config_model , detail=None):
   """
   Updates the  mapred-site configuration of  cluster.
   @param config_model: The configModel object
   @return: A ConfigModel object.
   """
   return configuration._update_configuration(self._get_resource_root(), self.cluster_name, "mapred-site", "version1", config_model)
 def update_mapred_site_config(self, config_model , detail=None):
   """
   Updates the  mapred-site configuration of  cluster.
   @param config_model: The configModel object
   @return: A ConfigModel object.
   """
   return configuration._update_configuration(self._get_resource_root(), self.cluster_name, "mapred-site", "version1", config_model)
Beispiel #3
0
 def update_global_config(self, config_model, tag="version1", detail=None):
     """
     Updates the  global configuration of  cluster.
     @param config_model: The configModel object
     @return: A ConfigModel object.
     """
     return configuration._update_configuration(self._get_resource_root(),
                                                self.cluster_name, "global",
                                                tag, config_model)
 def update_global_config(self, config_model, tag="version1", detail=None):
     """
     Updates the  global configuration of  cluster.
     @param config_model: The configModel object
     @return: A ConfigModel object.
     """
     return configuration._update_configuration(
         self._get_resource_root(),
         self.cluster_name,
         "global",
         tag,
         config_model)