Skip to content

Commit 4677f14

Browse files
authored
[Hotfix] Fix uninitialized OPTIMIZER_LOG_CONF_FILE causing Log4j parsing error (#4074)
Signed-off-by: j1wonpark <jpark92@outlook.kr>
1 parent 73c868c commit 4677f14

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dist/src/main/amoro-bin/bin/optimizer.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ CURRENT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
2121

2222
. $CURRENT_DIR/load-config.sh
2323

24+
if [ -z "$OPTIMIZER_LOG_CONF_FILE" ]; then
25+
export OPTIMIZER_LOG_CONF_FILE="${AMORO_CONF_DIR}/optimize/log4j2.xml"
26+
fi
27+
2428
LIB_PATH=$AMORO_HOME/lib
2529
export CLASSPATH=$AMORO_CONF_DIR/optimize:$LIB_PATH/:$(find $LIB_PATH/ -type f -name "*.jar" | paste -sd':' -)
2630
if [ -z "$(find $LIB_PATH/ -type f -name "*.jar" | paste -sd':' -)" ]; then

0 commit comments

Comments
 (0)