Esempio n. 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")
Esempio n. 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")
Esempio n. 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")
Esempio n. 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")
Esempio n. 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)
Esempio n. 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)