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")
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")
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")
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")
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)
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)