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

Masatake Iwasaki commented on HADOOP-16261:
-------------------------------------------

Metrics system emits logs if you use S3A on console.
{noformat}
$ bin/hadoop fs -test -e s3a://iwasakims-test/
2019-04-17 12:33:44,397 INFO impl.MetricsConfig: Loaded properties from 
hadoop-metrics2.properties
2019-04-17 12:33:44,558 INFO impl.MetricsSystemImpl: Scheduled Metric snapshot 
period at 10 second(s).
2019-04-17 12:33:44,558 INFO impl.MetricsSystemImpl: s3a-file-system metrics 
system started
2019-04-17 12:33:46,031 INFO impl.MetricsSystemImpl: Stopping s3a-file-system 
metrics system...
2019-04-17 12:33:46,031 INFO impl.MetricsSystemImpl: s3a-file-system metrics 
system stopped.
2019-04-17 12:33:46,031 INFO impl.MetricsSystemImpl: s3a-file-system metrics 
system shutdown complete.
{noformat}
Since those logs are useful for debugging metrics systems only, it could be 
suppressed by log4j.properties. Changing log levels to debug in the code is 
option. Changing log4j.properties affects daemons using metrics system. I could 
not find a tweak to change package log level for console logger only.

Target should be trunk (and branch-2?) because [Admin compatibility 
guide|https://hadoop.apache.org/docs/r3.2.0/hadoop-project-dist/hadoop-common/AdminCompatibilityGuide.html#Parsing_Hadoop_Output]
 states that "Hadoop log output is not expected to change with a maintenance 
release unless it resolves a correctness issue."

> Suppress info logging in MetricsSystemImpl and MetricsConfig
> ------------------------------------------------------------
>
>                 Key: HADOOP-16261
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16261
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: common, hadoop-aws, metrics
>            Reporter: Masatake Iwasaki
>            Assignee: Masatake Iwasaki
>            Priority: Minor
>
> Logs emitted by metrics system are noisy when using console command.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to