Skip to content

[Bug] [Command] Run seatunnel on windows with fileAppender enabled, no log file been created #8929

@FrommyMind

Description

@FrommyMind

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

  1. Start a cluster
    call ./bin/seatunnel-cluster.cmd
  2. edit log4j2_client.properties to enable fileAppender
  3. run a example
    call ./bin/seatunnel.cmd -c .\config\v2.batch.config.template -m cluster

No log file been created under path SEATUNNEL_HOME/logs

Try debug , add below echo in seatunnel.cmd

echo "java %JAVA_OPTS% -cp %CLASS_PATH% %APP_MAIN% %args%"
java %JAVA_OPTS% -cp %CLASS_PATH% %APP_MAIN% %args%

The output:

"java -Dhazelcast.client.config=F:\apache-seatunnel-2.3.9-bin\apache-seatunnel-2.3.9\config\hazelcast-client.yaml -Dseatunnel.config=F:\apache-seatunnel-2.3.9-bin\apache-seatunnel-2.3.9\config\seatunnel.yaml -Dhazelcast.config=F:\apache-seatunnel-2.3.9-bin\apache-seatunnel-2.3.9\config\hazelcast.yaml -Dlog4j2.isThreadContextMapInheritable=true -Dseatunnel.logs.file_name=seatunnel-starter-client-20250307-161522161522.07 -Xms256m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/seatunnel/dump/zeta-client -cp F:\apache-seatunnel-2.3.9-bin\apache-seatunnel-2.3.9\lib\*;F:\apache-seatunnel-2.3.9-bin\apache-seatunnel-2.3.9\starter\seatunnel-starter.jar org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient -c .\config\v2.batch.config.template -m cluster"

There has no config about -Dlog4j2.configurationFile

SeaTunnel Version

2.3.9

SeaTunnel Config

default config

Running Command

call ./bin/seatunnel.cmd -c .\config\v2.batch.config.template -m cluster

Error Exception

No log file been created.

Zeta or Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions