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 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(
at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.sourceName(
at org.apache.hadoop.yarn.server.resourcemanager.ClusterMetrics.registerMetrics(
at org.apache.hadoop.yarn.server.resourcemanager.ClusterMetrics.getMetrics(
at org.apache.hadoop.yarn.server.resourcemanager.NodesListManager.setDecomissionedNMsMetrics(
at org.apache.hadoop.service.AbstractService.init(
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(
at org.apache.hadoop.yarn.server.resourcemanager.MockRM.(
at org.apache.hadoop.yarn.server.resourcemanager.MockRM.(

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.