TianXinCoord opened a new issue, #16044:
URL: https://github.com/apache/dolphinscheduler/issues/16044

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   # Question
   1. There is a simple jar file in the Resources
   
![image](https://github.com/apache/dolphinscheduler/assets/27728690/9ebe9148-7b16-4081-9ff1-b05fe8fe5dbd)
   2. Workflow Definition -> Java -> RunType[jar]
   
![image](https://github.com/apache/dolphinscheduler/assets/27728690/d37b5724-ba87-4744-8547-4336e5d6b0e4)
   
   # Error log
   Error: Unable to access jarfile 
/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35//tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/scheduler-job-1.0.jar
   
   ### What you expected to happen
   
   
![image](https://github.com/apache/dolphinscheduler/assets/27728690/e3377b7a-2e87-422c-9208-be8438fe04ce)
   
   **Jarfile path:**
   
   
**/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35//tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/scheduler-job-1.0.jar**
   
   _it should be_
   
   
**/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/scheduler-job-1.0.jar**
   
   # Issue
   - **The path repeats once**
   
   ### How to reproduce
   
   1. Reference “What happened”
   2. he file is attached to "Anything else"
   
   ### Anything else
   
   ```
   [INFO] 2024-05-21 04:10:46.628 +0000 - ****************************** Script 
Content *****************************************************************
   [INFO] 2024-05-21 04:10:46.628 +0000 - #!/bin/bash
   BASEDIR=$(cd `dirname $0`; pwd)
   cd $BASEDIR
   export JAVA_HOME=/opt/jdk-11.0.21
   export PATH=$PATH:$JAVA_HOME/bin
   ${JAVA_HOME}/bin/java -classpath 
.:/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35:/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35//tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/scheduler-job-1.0.jar
 -jar 
/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35//tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/scheduler-job-1.0.jar
 name=jar from=ds 
   [INFO] 2024-05-21 04:10:46.628 +0000 - ****************************** Script 
Content *****************************************************************
   [INFO] 2024-05-21 04:10:46.630 +0000 - Executing shell command : sudo -u 
root -i 
/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/27_35.sh
   [INFO] 2024-05-21 04:10:46.670 +0000 - process start, process id is: 15913
   [INFO] 2024-05-21 04:10:47.677 +0000 -  -> 
           Error: Unable to access jarfile 
/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35//tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/scheduler-job-1.0.jar
   [INFO] 2024-05-21 04:10:47.678 +0000 - process has exited. execute 
path:/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35,
 processId:15913 ,exitStatusCode:1 ,processWaitForStatus:true 
,processExitValue:1
   [INFO] 2024-05-21 04:10:47.679 +0000 - java task run result: 
TaskResponse(varPool=null, processId=15913, resultString=null, appIds=null, 
process=null, cancel=false, exitStatusCode=1, status=null)
   [INFO] 2024-05-21 04:10:47.679 +0000 - 
***********************************************************************************************
   [INFO] 2024-05-21 04:10:47.679 +0000 - *********************************  
Finalize task instance  ************************************
   [INFO] 2024-05-21 04:10:47.679 +0000 - 
***********************************************************************************************
   [INFO] 2024-05-21 04:10:47.680 +0000 - Upload output files: [] successfully
   [INFO] 2024-05-21 04:10:47.689 +0000 - Send task execute status: FAILURE to 
master : 192.168.33.10:1234
   [INFO] 2024-05-21 04:10:47.690 +0000 - Remove the current task execute 
context from worker cache
   [INFO] 2024-05-21 04:10:47.690 +0000 - The current execute mode is develop 
mode, will not clear the task execute file: 
/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35
   [INFO] 2024-05-21 04:10:47.691 +0000 - FINALIZE_SESSION
   [root@Server01 dolphinscheduler-3.2.1]# cd 
/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/
   [root@Server01 35]# ls
   27_35.sh  scheduler-job-1.0.jar
   [root@Server01 35]# cd 
/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35//tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/
   -bash: cd: 
/tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35//tmp/dolphinscheduler/exec/process/root/13662798504288/13674166333024_7/27/35/:
 No such file or directory
   ```
   [Logs and 
scripts.zip](https://github.com/apache/dolphinscheduler/files/15384497/Logs.and.scripts.zip)
   
   
   ### Version
   
   3.2.x
   
   ### 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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to