This is an automated email from the ASF dual-hosted git repository.

czy006 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git


The following commit(s) were added to refs/heads/master by this push:
     new 4677f14c2 [Hotfix] Fix uninitialized OPTIMIZER_LOG_CONF_FILE causing 
Log4j parsing error (#4074)
4677f14c2 is described below

commit 4677f14c292abe890fc1ec1304065835ee07fe02
Author: Jiwon Park <[email protected]>
AuthorDate: Fri Feb 6 12:39:53 2026 +0900

    [Hotfix] Fix uninitialized OPTIMIZER_LOG_CONF_FILE causing Log4j parsing 
error (#4074)
    
    Signed-off-by: j1wonpark <[email protected]>
---
 dist/src/main/amoro-bin/bin/optimizer.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dist/src/main/amoro-bin/bin/optimizer.sh 
b/dist/src/main/amoro-bin/bin/optimizer.sh
index 19b598b06..8e01c619c 100755
--- a/dist/src/main/amoro-bin/bin/optimizer.sh
+++ b/dist/src/main/amoro-bin/bin/optimizer.sh
@@ -21,6 +21,10 @@ CURRENT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
 
 . $CURRENT_DIR/load-config.sh
 
+if [ -z "$OPTIMIZER_LOG_CONF_FILE" ]; then
+    export OPTIMIZER_LOG_CONF_FILE="${AMORO_CONF_DIR}/optimize/log4j2.xml"
+fi
+
 LIB_PATH=$AMORO_HOME/lib
 export CLASSPATH=$AMORO_CONF_DIR/optimize:$LIB_PATH/:$(find $LIB_PATH/ -type f 
-name "*.jar" | paste -sd':' -)
 if [ -z "$(find $LIB_PATH/ -type f -name "*.jar" | paste -sd':' -)" ]; then

Reply via email to