This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new e39c536b753 HDDS-16031. Suppress java.util.logging in shell commands
(#10910)
e39c536b753 is described below
commit e39c536b7539e91832e0496730a258ce4f648728
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Fri Jul 31 22:12:59 2026 +0200
HDDS-16031. Suppress java.util.logging in shell commands (#10910)
---
hadoop-ozone/dist/dev-support/bin/dist-layout-stitching | 1 +
.../dist/src/shell/conf/shell-logging.properties | 17 +++++++++++++++++
hadoop-ozone/dist/src/shell/ozone/ozone | 1 +
3 files changed, 19 insertions(+)
diff --git a/hadoop-ozone/dist/dev-support/bin/dist-layout-stitching
b/hadoop-ozone/dist/dev-support/bin/dist-layout-stitching
index 9978b0def02..4985cb5a2f4 100755
--- a/hadoop-ozone/dist/dev-support/bin/dist-layout-stitching
+++ b/hadoop-ozone/dist/dev-support/bin/dist-layout-stitching
@@ -89,6 +89,7 @@ run cp
"${ROOT}/hadoop-ozone/dist/src/shell/conf/dn-container-log4j2.properties"
run cp "${ROOT}/hadoop-ozone/dist/src/shell/conf/scm-audit-log4j2.properties"
"etc/hadoop"
run cp "${ROOT}/hadoop-ozone/dist/src/shell/conf/s3g-audit-log4j2.properties"
"etc/hadoop"
run cp "${ROOT}/hadoop-ozone/dist/src/shell/conf/ozone-site.xml" "etc/hadoop"
+run cp "${ROOT}/hadoop-ozone/dist/src/shell/conf/shell-logging.properties"
"etc/hadoop"
run cp -f "${ROOT}/hadoop-ozone/dist/src/shell/conf/log4j.properties"
"etc/hadoop"
run cp
"${ROOT}/hadoop-hdds/framework/src/main/resources/network-topology-default.xml"
"etc/hadoop"
run cp
"${ROOT}/hadoop-hdds/framework/src/main/resources/network-topology-nodegroup.xml"
"etc/hadoop"
diff --git a/hadoop-ozone/dist/src/shell/conf/shell-logging.properties
b/hadoop-ozone/dist/src/shell/conf/shell-logging.properties
new file mode 100644
index 00000000000..a9935ceea8f
--- /dev/null
+++ b/hadoop-ozone/dist/src/shell/conf/shell-logging.properties
@@ -0,0 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+.level=OFF
diff --git a/hadoop-ozone/dist/src/shell/ozone/ozone
b/hadoop-ozone/dist/src/shell/ozone/ozone
index 8592ef99e2f..d52e9d50b4d 100755
--- a/hadoop-ozone/dist/src/shell/ozone/ozone
+++ b/hadoop-ozone/dist/src/shell/ozone/ozone
@@ -302,6 +302,7 @@ function ozone_suppress_shell_log
OZONE_LOGLEVEL=OFF
OZONE_ROOT_LOGGER="${OZONE_LOGLEVEL},console"
OZONE_OPTS="${OZONE_OPTS} -Dslf4j.internal.verbosity=ERROR"
+
OZONE_OPTS="-Djava.util.logging.config.file='${OZONE_CONF_DIR}/shell-logging.properties'
${OZONE_OPTS}"
fi
fi
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]