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

   ### 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
   
   I try to use seatunnel to submit job via DS.
   I find there has some case can be improve.
   
   I defined a seatunnel task, the config file is from resource center.
   
![image](https://github.com/user-attachments/assets/2bcec261-a154-4d46-811d-c2aecae0ed80)
   
   When I run this task, I find it has some issue.
   First, the config file location will be delete the first charsert
   
![image](https://github.com/user-attachments/assets/2fd8b7e0-830f-420a-b6d5-07d68e63e862)
   It will update the shell script to 
   ```
   ${SEATUNNEL_HOME}/bin/seatunnel.sh --config 
dfs://nameservice1/dolphinscheduler/root/resources/lnj/batch.conf --deploy-mode 
local
   ```
   This will obviously be an error, because `hdfs` update to `dfs`.
   In local env, the file path will replace from `file:/xxx` to `ile:/xxx`
   
   
   In my understanding seatunnel is not support read file from HDFS or other 
file system now. 
   So even we fix this issue, it still can run well.
   
   I think we can download the file from resource center to local, (like the 
HiveCli Task). then the submit script use the local file path.
   
   
   
   
   Another thing i noticed is when i choose file, the demo config still will be 
write to taskParams. We can improve this as it's useless.
   
   
![image](https://github.com/user-attachments/assets/586219ee-0ee1-4e0a-97c6-8c3e652efcff)
   
   
   
   
   
   
   
   
   
   
   
   
   
   ### What you expected to happen
   
   bug fix
   
   ### How to reproduce
   
   create an seatunnel task, config file using resource center
   
   ### 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