You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Zoltan Siegl (JIRA)" <ji...@apache.org> on 2018/08/23 13:53:00 UTC

[jira] [Commented] (YARN-7680) ContainerMetrics is registered even if yarn.nodemanager.container-metrics.enable is set to false

    [ https://issues.apache.org/jira/browse/YARN-7680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16590235#comment-16590235 ] 

Zoltan Siegl commented on YARN-7680:
------------------------------------

Hey [~ajisakaa]!

I have been trying to fix or reproduce this on apache/trunk without any success.

In the code I have found 4 places where org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor.ContainerMetrics#forContainer(org.apache.hadoop.yarn.api.records.ContainerId, long, long) is referenced, and all of those are invoked only if the yarn.nodemanager.container-metrics.enable config is set to true.

Steps taken to reproduce:
 * Run a pseudo distributed hadoop cluster
 * {{run hadoop jar hadoop-3.2.0-SNAPSHOT/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.2.0-SNAPSHOT.jar pi 10 10}} to fire up some containers.

If yarn.nodemanager.container-metrics.enable config is set to false I have seen no signs of ContainerMetrics being registered whatsoever.

Could you provide a way to reproduce this issue?

> ContainerMetrics is registered even if yarn.nodemanager.container-metrics.enable is set to false
> ------------------------------------------------------------------------------------------------
>
>                 Key: YARN-7680
>                 URL: https://issues.apache.org/jira/browse/YARN-7680
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: metrics
>    Affects Versions: 3.0.0
>            Reporter: Akira Ajisaka
>            Assignee: Zoltan Siegl
>            Priority: Critical
>
> ContainerMetrics is unintentionally registered to DefaultMetricsSystem even if yarn.nodemanager.container-metrics.enable is set to false. For example, when we set *.sink.ganglia.class=org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 to sink all the metrics to Ganglia, MetricsSystem sink ContainerMetrics to ganglia server (localhost:8649 by default).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org