[
https://issues.apache.org/jira/browse/HADOOP-19281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17884551#comment-17884551
]
ASF GitHub Bot commented on HADOOP-19281:
-----------------------------------------
sarvekshayr opened a new pull request, #7071:
URL: https://github.com/apache/hadoop/pull/7071
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
Adjusted the log level of specific messages from `MetricsSystemImpl` and
`MetricsConfig` to prevent unrelated logs from cluttering the output.
### How was this patch tested?
This patch was tested by running the test classes associated with the above
classes.
### For code changes:
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
> MetricsSystemImpl should not print INFO message in CLI
> ------------------------------------------------------
>
> Key: HADOOP-19281
> URL: https://issues.apache.org/jira/browse/HADOOP-19281
> Project: Hadoop Common
> Issue Type: Improvement
> Components: metrics
> Reporter: Tsz-wo Sze
> Priority: Major
> Labels: newbie
>
> Below is an example:
> {code}
> # hadoop fs -Dfs.s3a.bucket.probe=0
> -Dfs.s3a.change.detection.version.required=false
> -Dfs.s3a.change.detection.mode=none -Dfs.s3a.endpoint=http://some.site:9878
> -Dfs.s3a.access.keysome=systest -Dfs.s3a.secret.key=8...1
> -Dfs.s3a.endpoint=http://some.site:9878 -Dfs.s3a.path.style.access=true
> -Dfs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem -ls -R s3a://bucket1/
> 24/09/17 10:47:48 WARN impl.MetricsConfig: Cannot locate configuration: tried
> hadoop-metrics2-s3a-file-system.properties,hadoop-metrics2.properties
> 24/09/17 10:47:48 INFO impl.MetricsSystemImpl: Scheduled Metric snapshot
> period at 10 second(s).
> 24/09/17 10:47:48 INFO impl.MetricsSystemImpl: s3a-file-system metrics system
> started
> 24/09/17 10:47:48 WARN impl.ConfigurationHelper: Option
> fs.s3a.connection.establish.timeout is too low (5,000 ms). Setting to 15,000
> ms instead
> 24/09/17 10:47:50 WARN s3.S3TransferManager: The provided S3AsyncClient is an
> instance of MultipartS3AsyncClient, and thus multipart download feature is
> not enabled. To benefit from all features, consider using
> S3AsyncClient.crtBuilder().build() instead.
> drwxrwxrwx - root root 0 2024-09-17 10:47 s3a://bucket1/dir1
> 24/09/17 10:47:53 INFO impl.MetricsSystemImpl: Stopping s3a-file-system
> metrics system...
> 24/09/17 10:47:53 INFO impl.MetricsSystemImpl: s3a-file-system metrics system
> stopped.
> 24/09/17 10:47:53 INFO impl.MetricsSystemImpl: s3a-file-system metrics system
> shutdown complete.
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]