FrommyMind opened a new issue, #8929:
URL: https://github.com/apache/seatunnel/issues/8929

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   1. Start a cluster
   `call ./bin/seatunnel-cluster.cmd`
   3.  edit `log4j2_client.properties` to enable fileAppender 
   4.  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`
   
   ```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
   
   ```conf
   default config
   ```
   
   ### Running Command
   
   ```shell
   call ./bin/seatunnel.cmd -c .\config\v2.batch.config.template -m cluster
   ```
   
   ### Error Exception
   
   ```log
   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?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to