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

   ### 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
   
   **1. I have defined the workflow error for JAVA language as follows**
   [{"prop":"name","direct":"IN","type":"VARCHAR","value":"superadmin"}] 
successfully
   [INFO] 2023-12-18 15:53:02.815 +0800 - 
***********************************************************************************************
   [INFO] 2023-12-18 15:53:02.815 +0800 - *********************************  
Execute task instance  *************************************
   [INFO] 2023-12-18 15:53:02.815 +0800 - 
***********************************************************************************************
   [INFO] 2023-12-18 15:53:02.815 +0800 - The current java source code will 
begin to replace the placeholder: 
   public class HelloUser{
   
       public static void main(String[] args){
   
           if("superadmin".equals("${name}"){
                System.out.println("this is superadmin!");
           }
           System.out.println("Hello: ${name}");
       }
   
   }
   [INFO] 2023-12-18 15:53:02.816 +0800 - tenantCode: default, task 
dir:/tmp/dolphinscheduler/exec/process/default/11926875436032/11929388222080_8/12/27
   [INFO] 2023-12-18 15:53:02.816 +0800 - the java source 
code:/tmp/dolphinscheduler/exec/process/default/11926875436032/11929388222080_8/12/27/HelloUser.java,
 will be write to the file: 
   public class HelloUser{
   
       public static void main(String[] args){
   
           if("superadmin".equals("superadmin"){
                System.out.println("this is superadmin!");
           }
           System.out.println("Hello: superadmin");
       }
   
   }
   [INFO] 2023-12-18 15:53:02.817 +0800 - Final Shell file is : 
   #!/bin/bash
   BASEDIR=$(cd `dirname $0`; pwd)
   cd $BASEDIR
   ${JAVA_HOME}/bin/javac --class-path 
.:/tmp/dolphinscheduler/exec/process/default/11926875436032/11929388222080_8/12/27
 
/tmp/dolphinscheduler/exec/process/default/11926875436032/11929388222080_8/12/27/HelloUser.java;${JAVA_HOME}/bin/java
 --class-path 
.:/tmp/dolphinscheduler/exec/process/default/11926875436032/11929388222080_8/12/27
 HelloUser  
   [INFO] 2023-12-18 15:53:02.817 +0800 - Executing shell command : sudo -u 
root -i 
/tmp/dolphinscheduler/exec/process/default/11926875436032/11929388222080_8/12/27/12_27.sh
   [INFO] 2023-12-18 15:53:02.821 +0800 - process start, process id is: 4900
   [INFO] 2023-12-18 15:53:03.821 +0800 -  -> 
        
/tmp/dolphinscheduler/exec/process/default/11926875436032/11929388222080_8/12/27/12_27.sh:
 line 4: /bin/javac: No such file or directory
        
/tmp/dolphinscheduler/exec/process/default/11926875436032/11929388222080_8/12/27/12_27.sh:
 line 4: /bin/java: No such file or directory
   [INFO] 2023-12-18 15:53:03.823 +0800 - process has exited. execute 
   
   
   **2.According to the logs, the JAVA file cannot be found on the server. I 
don't know why?**
   
![image](https://github.com/apache/dolphinscheduler/assets/75770940/01f5959b-b44c-4f77-8d29-05ed94993ca1)
   
   
   ### What you expected to happen
   
   normal
   
   ### How to reproduce
   
   
![image](https://github.com/apache/dolphinscheduler/assets/75770940/1ebf62ee-1a8c-4501-9161-ba56f8e07b23)
   
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### 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