예제 #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)