示例#1
0
 def get_hdfs_site_config(self, detail=None):
     """
     Get hdfs-site configuration of  cluster.
     @return: A ConfigModel object.
     """
     return configuration._get_configuration(self._get_resource_root(),
                                             self.cluster_name, "hdfs-site")
示例#2
0
 def get_global_config(self, detail=None):
     """
     Get global configuration of  cluster.
     @return: A ConfigModel object.
     """
     return configuration._get_configuration(self._get_resource_root(),
                                             self.cluster_name, "global")
示例#3
0
 def get_mapred_site_config(self, detail=None):
     """
     Get mapred-site configuration of  cluster.
     @return: A ConfigModel object.
     """
     return configuration._get_configuration(
         self._get_resource_root(),
         self.cluster_name,
         "mapred-site")
示例#4
0
 def get_global_config(self, detail=None):
     """
     Get global configuration of  cluster.
     @return: A ConfigModel object.
     """
     return configuration._get_configuration(
         self._get_resource_root(),
         self.cluster_name,
         "global")
示例#5
0
 def get_core_site_config(self, tag="version1", detail=None):
     """
     Get core-site configuration of  cluster.
     @return: A ConfigModel object or ModelList<ConfiObject>
     """
     if (detail == utils.ALL):
         return configuration._get_all_configuration(
             self._get_resource_root(), self.cluster_name, "core-site")
     else:
         return configuration._get_configuration(self._get_resource_root(),
                                                 self.cluster_name,
                                                 "core-site", tag)
示例#6
0
 def get_core_site_config(self, tag="version1", detail=None):
     """
     Get core-site configuration of  cluster.
     @return: A ConfigModel object or ModelList<ConfiObject>
     """
     if(detail == utils.ALL):
         return configuration._get_all_configuration(
             self._get_resource_root(),
             self.cluster_name,
             "core-site")
     else:
         return configuration._get_configuration(
             self._get_resource_root(),
             self.cluster_name,
             "core-site",
             tag)