org.apache.hadoop.metrics2.MetricsException: Metrics source ClusterMetrics already exists!

Hot problem!
This exception has a lot of traffic. You can help 26 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via hadoop-yarn-dev by Apache Jenkins Server, 1 year ago
Metrics source JvmMetrics already exists!
via apache.org by Unknown author, 2 years ago
Metrics source s0 already exists!
via Google Groups by anil gupta, 2 years ago
org.apache.hadoop.metrics2.MetricsException: Metrics source ClusterMetrics already exists!
at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.newSourceName(DefaultMetricsSystem.java:134)
at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.sourceName(DefaultMetricsSystem.java:115)
at org.apache.hadoop.yarn.server.resourcemanager.ClusterMetrics.registerMetrics(ClusterMetrics.java:71)
at org.apache.hadoop.yarn.server.resourcemanager.ClusterMetrics.getMetrics(ClusterMetrics.java:58)
at org.apache.hadoop.yarn.server.resourcemanager.NodesListManager.setDecomissionedNMsMetrics(NodesListManager.java:131)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:818)
at org.apache.hadoop.yarn.server.resourcemanager.MockRM.(MockRM.java:90)
at org.apache.hadoop.yarn.server.resourcemanager.MockRM.(MockRM.java:85)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.