[Bug] [Flink Jar] Download hdfs jar fail when running flink jar task:xxxx is not a valid DFS filename
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 350
- PR merge metrics
- No merged PRs in 30d
Description
### Search before asking
- [X] I had searched in the [issues](https://github.com/DTStack/Taier/issues) and found no similar issues.
### What happened
When running flink jar task with a resource which is stored in hdfs,taier can not download jar from hdfs successfully.And it makes flink jobs run fail.

### What you expected to happen
I have seen the source code and debug,found that the reason for this problem is related to `StreamSqlFormatService#generateAddJarSql(String,String)` and `FileSystemManager#downloadFile(...)`
`StreamSqlFormatService` will replace hdfs://localhost:9820 to hdfs:/localhost:9820,
When I return resource url directly, here comes the second question:
`FileSystemManager` will remove prefix(hdfs://), which make url to `localhost:9820`.Of course,`HdfsFileManage` download fail
### How to reproduce
follow below steps can produce this problem:
1. upload a flink application jar and choose hdfs storage

2. create flink jar task and run.
### Anything else
_No response_
### Version
master
### 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)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.