Hackeruncle commented on issue #2452: [BUG] not support the command "source 
xxx.sh" 
URL: 
https://github.com/apache/incubator-dolphinscheduler/issues/2452#issuecomment-615143715
 
 
   **1.sh**
   ```
   $ cat 1.sh
   #!/bin/bash
   TEST="aaa"
   ```
   
   **upload 1.sh file to dolphinscheduler, and run on process:**
   ```
   source 1.sh
   echo $TEST
   ```
   
   **task log:**
   ```
   /tmp/dolphinscheduler/exec/process/2/20/1388/7216/20_1388_7216_node.sh
   [INFO] 2020-03-10 18:49:09.582  - [taskAppId=TASK-20-1388-7216]:[329] - task 
run command:
   sudo -u bigdata sh 
/tmp/dolphinscheduler/exec/process/2/20/1388/7216/20_1388_7216.command
   [INFO] 2020-03-10 18:49:09.588  - [taskAppId=TASK-20-1388-7216]:[158] - 
process start, process id is: 1907
   [INFO] 2020-03-10 18:49:09.598  - [taskAppId=TASK-20-1388-7216]:[106] -  -> 
/tmp/dolphinscheduler/exec/process/2/20/1388/7216/20_1388_7216_node.sh: line 1: 
source: 1.sh: file not found
   [INFO] 2020-03-10 18:49:09.599  - [taskAppId=TASK-20-1388-7216]:[168] - 
process has exited, work dir:/tmp/dolphinscheduler/exec/process/2/20/1388/7216, 
pid:1907 ,exitStatusCode:1
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to