Skip to content

Commit

Permalink
[Bug] [zeta][starter]fix bug (apache#4983) (apache#4984)
Browse files Browse the repository at this point in the history
Co-authored-by: wsstony <tonymao777@163.com>
  • Loading branch information
2 people authored and wunan1210 committed Jul 5, 2023
1 parent 00b2b18 commit c5ec4b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ if [ -e "${CONF_DIR}/log4j2_client.properties" ]; then
JAVA_OPTS="${JAVA_OPTS} -Dlog4j2.configurationFile=${CONF_DIR}/log4j2_client.properties"
JAVA_OPTS="${JAVA_OPTS} -Dseatunnel.logs.path=${APP_DIR}/logs"
if [[ $args == *" -m local"* || $args == *" --master local"* || $args == *" -e local"* || $args == *" --deploy-mode local"* ]]; then
JAVA_OPTS="${JAVA_OPTS} -Dseatunnel.logs.file_name=seatunnel-starter-client-$((`date '+%s'`*1000+`date '+%N'`/1000000))"
ntime=$(echo `date "+%N"`|sed -r 's/^0+//')
JAVA_OPTS="${JAVA_OPTS} -Dseatunnel.logs.file_name=seatunnel-starter-client-$((`date '+%s'`*1000+$ntime/1000000))"
else
JAVA_OPTS="${JAVA_OPTS} -Dseatunnel.logs.file_name=seatunnel-starter-client"
fi
Expand Down

0 comments on commit c5ec4b6

Please sign in to comment.