This is an automated email from the ASF dual-hosted git repository.
okumin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new e8fc30c95a8 HIVE-28748: Docker: Redirect daemon's logs to STDOUT
(#5638) (Shohei Okumiya, reviewed by Denys Kuzmenko, Ayush Saxena)
e8fc30c95a8 is described below
commit e8fc30c95a817b0c3ef0cc2c4c63a2fd63b2fcee
Author: Shohei Okumiya <[email protected]>
AuthorDate: Sun Feb 16 13:40:24 2025 +0900
HIVE-28748: Docker: Redirect daemon's logs to STDOUT (#5638) (Shohei
Okumiya, reviewed by Denys Kuzmenko, Ayush Saxena)
---
packaging/src/docker/conf/hive-log4j2.properties | 65 ++++++++++++++++++++++++
packaging/src/docker/conf/hive-site.xml | 4 ++
2 files changed, 69 insertions(+)
diff --git a/packaging/src/docker/conf/hive-log4j2.properties
b/packaging/src/docker/conf/hive-log4j2.properties
new file mode 100644
index 00000000000..6863e6cbf5a
--- /dev/null
+++ b/packaging/src/docker/conf/hive-log4j2.properties
@@ -0,0 +1,65 @@
+# 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.
+
+status = INFO
+name = HiveLog4j2
+packages = org.apache.hadoop.hive.ql.log
+
+# list of properties
+property.hive.log.level = INFO
+property.hive.root.logger = stdout
+property.hive.perflogger.log.level = INFO
+
+# list of all appenders
+appenders = console
+
+# console appender
+appender.console.name = stdout
+appender.console.type = Console
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{ISO8601} %5p [%t] %c{2}: %m%n
+
+# list of all loggers
+loggers = NIOServerCnxn, ClientCnxnSocketNIO, DataNucleus, Datastore, JPOX,
PerfLogger, AmazonAws, ApacheHttp
+
+logger.NIOServerCnxn.name = org.apache.zookeeper.server.NIOServerCnxn
+logger.NIOServerCnxn.level = WARN
+
+logger.ClientCnxnSocketNIO.name = org.apache.zookeeper.ClientCnxnSocketNIO
+logger.ClientCnxnSocketNIO.level = WARN
+
+logger.DataNucleus.name = DataNucleus
+logger.DataNucleus.level = ERROR
+
+logger.Datastore.name = Datastore
+logger.Datastore.level = ERROR
+
+logger.JPOX.name = JPOX
+logger.JPOX.level = ERROR
+
+logger.AmazonAws.name=com.amazonaws
+logger.AmazonAws.level = INFO
+
+logger.ApacheHttp.name=org.apache.http
+logger.ApacheHttp.level = INFO
+
+logger.PerfLogger.name = org.apache.hadoop.hive.ql.log.PerfLogger
+logger.PerfLogger.level = ${sys:hive.perflogger.log.level}
+
+# root logger
+rootLogger.level = ${sys:hive.log.level}
+rootLogger.appenderRefs = root
+rootLogger.appenderRef.root.ref = ${sys:hive.root.logger}
diff --git a/packaging/src/docker/conf/hive-site.xml
b/packaging/src/docker/conf/hive-site.xml
index 53ac86e49a9..155353a5331 100644
--- a/packaging/src/docker/conf/hive-site.xml
+++ b/packaging/src/docker/conf/hive-site.xml
@@ -44,6 +44,10 @@
<name>hive.exec.submit.local.task.via.child</name>
<value>false</value>
</property>
+ <property>
+ <name>hive.compactor.worker.threads</name>
+ <value>1</value>
+ </property>
<property>
<name>mapreduce.framework.name</name>
<value>local</value>