def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "hbase", "regionserver") self._hadoop_regionserver_metrics = {} for i in range(len(self._file_list)): self._hadoop_regionserver_metrics.setdefault( self._file_list[i], {})
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "yarn", "nodemanager") self._hadoop_nodemanager_metrics = {} for i in range(len(self._file_list)): self._hadoop_nodemanager_metrics.setdefault(self._file_list[i], {})
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "hbase", "regionserver") self._clear_init()
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "hdfs", "datanode") self._clear_init()
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "mapreduce", "jobhistoryserver") self._hadoop_jobhistoryserver_metrics = {}
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "hdfs", "namenode") self._hadoop_namenode_metrics = {} for i in range(len(self._file_list)): self._hadoop_namenode_metrics.setdefault(self._file_list[i], {})
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "hive", "hiveserver2") self._clear_init()
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "hive", "llapdaemon") self._clear_init()
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "hive", "hiveserver2") self._hadoop_hiveserver2_metrics = {} for i in range(len(self._file_list)): self._hadoop_hiveserver2_metrics.setdefault(self._file_list[i], {})
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "mapreduce", "jobhistoryserver") self._clear_init()
def __init__(self, cluster, url): MetricCol.__init__(self, cluster, url, "yarn", "resourcemanager") self._clear_init()
def __init__(self, cluster, url): # 手动调用父类初始化,传入cluster名称、jmx url、组件名称、服务名称 # 注意:服务名称应与JSON配置的文件夹名称保持一致 MetricCol.__init__(self, cluster, url, "hdfs", "namenode") self._clear_init()