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

   ### 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
   
   [LOG-PATH]: 
/opt/dolphinscheduler/logs/20251224/160869885370848/12/30/110.log, [HOST]: 
172.17.0.2:1234
   2025-12-24 07:40:21.794 INFO  - 🐬 Initialize Task Context
   2025-12-24 07:40:21.795 INFO  - Current tenant is default tenant, will use 
bootstrap user: root to execute the task
   2025-12-24 07:40:21.795 INFO  - TenantCode: root check successfully
   2025-12-24 07:40:21.796 INFO  - TaskInstance working directory: 
/tmp/dolphinscheduler/exec/process/110 create successfully
   2025-12-24 07:40:21.796 INFO  - Download resource file 
/tmp/dolphinscheduler/default/resources/original-air-program-1.0.jar -> 
/tmp/dolphinscheduler/exec/process/110/original-air-program-1.0.jar successfully
   2025-12-24 07:40:21.797 INFO  - Download resources successfully: 
   
ResourceContext(resourceItemMap={/tmp/dolphinscheduler/default/resources/original-air-program-1.0.jar=ResourceContext.ResourceItem(resourceAbsolutePathInStorage=/tmp/dolphinscheduler/default/resources/original-air-program-1.0.jar,
 
resourceAbsolutePathInLocal=/tmp/dolphinscheduler/exec/process/110/original-air-program-1.0.jar)})
   2025-12-24 07:40:21.797 INFO  - 🐬 Load Task Instance Plugin
   2025-12-24 07:40:21.798 INFO  - Initialized physicalTask: JAVA successfully
   2025-12-24 07:40:21.798 INFO  - Initialize java task params {
     "localParams" : [ {
       "prop" : "output",
       "direct" : "IN",
       "type" : "VARCHAR",
       "value" : ""
     } ],
     "varPool" : [ ],
     "mainJar" : {
       "id" : null,
       "resourceName" : 
"/tmp/dolphinscheduler/default/resources/original-air-program-1.0.jar",
       "res" : null
     },
     "runType" : "NORMAL_JAR",
     "mainArgs" : "\"1\"",
     "jvmArgs" : "",
     "mainClass" : "com.nlp.air.DecryptMobile",
     "resourceList" : [ {
       "id" : null,
       "resourceName" : 
"/tmp/dolphinscheduler/default/resources/original-air-program-1.0.jar",
       "res" : null
     } ],
     "modulePath" : false
   }
   2025-12-24 07:40:21.798 INFO  - Set taskVarPool: null successfully
   2025-12-24 07:40:21.798 INFO  - 🐬 Execute Task Instance
   2025-12-24 07:40:21.798 INFO  - Final Script Content:
   ====================
   #!/bin/bash
   BASEDIR=$(cd `dirname $0`; pwd)
   cd $BASEDIR
   ${JAVA_HOME}/bin/java -classpath 
.:/tmp/dolphinscheduler/exec/process/110:/tmp/dolphinscheduler/exec/process/110/original-air-program-1.0.jar
 com.nlp.air.DecryptMobile "1" 
   ====================
   2025-12-24 07:40:21.798 INFO  - Executing shell command : sudo -u root -i 
/tmp/dolphinscheduler/exec/process/110/110.sh
   2025-12-24 07:40:21.807 INFO  - process start, process id is: 2968
   2025-12-24 07:40:22.827 INFO  -  -> 
        /tmp/dolphinscheduler/exec/process/110/110.sh: line 4: /bin/java: No 
such file or directory
   2025-12-24 07:40:22.830 INFO  - process has exited. execute 
path:/tmp/dolphinscheduler/exec/process/110, processId:2968 ,exitStatusCode:127 
,processWaitForStatus:true ,processExitValue:127
   2025-12-24 07:40:22.831 INFO  - java task run result: 
TaskResponse(varPool=null, processId=2968, resultString=null, appIds=null, 
process=null, cancel=false, exitStatusCode=127, status=null)
   2025-12-24 07:40:22.957 INFO  - 🐬 Finalize Task Instance
   2025-12-24 07:40:22.957 INFO  - FINALIZE_SESSION
   2025-12-24 07:40:22.958 INFO  - Deleted task exec directory: 
/tmp/dolphinscheduler/exec/process/110
   
   
   ### What you expected to happen
   
   
为什么会找不到jar,文件传的时候明明是在"/tmp/dolphinscheduler/default/resources/original-air-program-1.0.jar"这个目录下,执行的时候为什么到/tmp/dolphinscheduler/exec/process/110:/tmp/dolphinscheduler/exec/process/110/original-air-program-1.0.jar这个目录找文件
   
   ### How to reproduce
   
   package com.nlp.air;
   
   public class DecryptMobile {
   
       public static void main(String[] args) {
   
           for (String arg:args){
               System.out.println(arg);
           }
       }
   
   }
   
[https://aisearch.cdn.bcebos.com/fileManager/N5aWehPiiKmKDDZcj09HB4-64Yi04v51vSlB7fegI-U/1766567015647GZXaVv.png?authorization=bce-auth-v1%2F7e22d8caf5af46cc9310f1e3021709f3%2F2025-12-24T09%3A03%3A37Z%2F86400%2Fhost%2F257b36930d295e4675423467b7eb13f0f8c95914324cc06b7d7b94b0a33410e4](url)
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [ ] 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