Search in sources :

Example 11 with JvmMetrics

use of org.apache.hadoop.metrics2.source.JvmMetrics in project hive by apache.

the class LlapTaskSchedulerMetrics method create.

public static LlapTaskSchedulerMetrics create(String displayName, String sessionId) {
    MetricsSystem ms = LlapMetricsSystem.instance();
    JvmMetrics jm = JvmMetrics.create(MetricsUtils.METRICS_PROCESS_NAME, sessionId, ms);
    return ms.register(displayName, "Llap Task Scheduler Metrics", new LlapTaskSchedulerMetrics(displayName, jm, sessionId));
}
Also used : JvmMetrics(org.apache.hadoop.hive.common.JvmMetrics) MetricsSystem(org.apache.hadoop.metrics2.MetricsSystem) LlapMetricsSystem(org.apache.hadoop.hive.llap.metrics.LlapMetricsSystem)

Aggregations

JvmMetrics (org.apache.hadoop.metrics2.source.JvmMetrics)6 MetricsSystem (org.apache.hadoop.metrics2.MetricsSystem)5 JvmPauseMonitor (org.apache.hadoop.util.JvmPauseMonitor)4 Configuration (org.apache.hadoop.conf.Configuration)3 MetricsRecordBuilder (org.apache.hadoop.metrics2.MetricsRecordBuilder)3 DefaultMetricsSystem (org.apache.hadoop.metrics2.lib.DefaultMetricsSystem)3 IOException (java.io.IOException)2 JvmMetrics (org.apache.hadoop.hive.common.JvmMetrics)2 YarnConfiguration (org.apache.hadoop.yarn.conf.YarnConfiguration)2 YarnRuntimeException (org.apache.hadoop.yarn.exceptions.YarnRuntimeException)2 LlapMetricsSystem (org.apache.hadoop.hive.llap.metrics.LlapMetricsSystem)1 HSAdminServer (org.apache.hadoop.mapreduce.v2.hs.server.HSAdminServer)1 MetricsCollector (org.apache.hadoop.metrics2.MetricsCollector)1 JvmMetricsInfo (org.apache.hadoop.metrics2.source.JvmMetricsInfo)1 AggregatedLogDeletionService (org.apache.hadoop.yarn.logaggregation.AggregatedLogDeletionService)1 Test (org.junit.Test)1