This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new ec07c344f ORC-1912: Suppress Hadoop logs lower than ERROR level during
testing
ec07c344f is described below
commit ec07c344f638f5072c9677ac31509aed2163b32d
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Jun 9 14:19:44 2025 -0700
ORC-1912: Suppress Hadoop logs lower than ERROR level during testing
### What changes were proposed in this pull request?
This PR aims to suppress Hadoop verbose logs which is lower than ERROR
level during testing.
### Why are the changes needed?
Hadoop INFO/WARN logs are too verbose and there is nothing for us to do
during testing.
```
$ mvn package | grep org.apache.hadoop
...
[main] WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
[main] WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
[main] WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
[main] WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
[main] WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
```
### How was this patch tested?
Manually check the log.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #2260 from dongjoon-hyun/ORC-1912.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit d16217b69673ccf823fb4eb1bd6248b97710f90f)
Signed-off-by: Dongjoon Hyun <[email protected]>
---
java/pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/java/pom.xml b/java/pom.xml
index a2a14210a..e58652b08 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -721,6 +721,7 @@
<systemPropertyVariables>
<test.tmp.dir>${test.tmp.dir}</test.tmp.dir>
<example.dir>${example.dir}</example.dir>
+
<org.slf4j.simpleLogger.log.org.apache.hadoop>error</org.slf4j.simpleLogger.log.org.apache.hadoop>
</systemPropertyVariables>
</configuration>
</plugin>