We're updating the issue view to help you get more done. 

"MetricsConfig" Cannot locate configuration error in MR Logs

Description

All MR programs show these errors multiple times:
2017-04-28 21:10:17,649 - WARN [main:o.a.h.m.i.MetricsConfig@125] - Cannot locate configuration: tried hadoop-metrics2-maptask.properties,hadoop-metrics2.properties

This file is not available on CDH or HDP based clusters:
[root@new4222432-1000 deepak]# ls -al /etc/hadoop/conf/*
rw-rr-. 1 root root 1380 Apr 26 18:48 /etc/hadoop/conf/capacity-scheduler.xml
r-------. 1 root root 422 Apr 26 18:52 /etc/hadoop/conf/container-executor.cfg
rw-rr-. 1 root root 886 Apr 26 18:52 /etc/hadoop/conf/core-site.xml
-rwxr-xr-x. 1 root root 972 Apr 26 18:52 /etc/hadoop/conf/hadoop-env.sh
rw-rr-. 1 root root 424 Apr 26 18:48 /etc/hadoop/conf/hadoop-metrics.properties
rw-rr-. 1 root root 2588 Apr 26 18:52 /etc/hadoop/conf/hdfs-site.xml
rw-rr-. 1 root root 5814 Apr 26 18:48 /etc/hadoop/conf/log4j.properties
-rwxr-xr-x. 1 root root 205 Apr 26 18:48 /etc/hadoop/conf/mapred-env.sh
rw-rr-. 1 root root 2477 Apr 26 18:52 /etc/hadoop/conf/mapred-site.xml
-rwxr-xr-x. 1 root root 528 Apr 26 18:52 /etc/hadoop/conf/yarn-env.sh
rw-rr-. 1 root root 3455 Apr 26 18:52 /etc/hadoop/conf/yarn-site.xml

Release Notes

None

Activity

Show:
Deepak Wadhwani
May 4, 2017, 11:57 PM

Ignoring the log using logback filters.

Won't Fix

Assignee

NitinM

Reporter

Deepak Wadhwani

Labels

None

External issue ID

None

Docs Impact

None

UX Impact

None

Priority

Major
Configure