You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "Radeity (via GitHub)" <gi...@apache.org> on 2023/02/11 14:59:54 UTC
[GitHub] [dolphinscheduler] Radeity commented on pull request #13536: [BUG][Resource Center] Task can not select main JAR
Radeity commented on PR #13536:
URL: https://github.com/apache/dolphinscheduler/pull/13536#issuecomment-1426792709
I just find another error, which confuse me. May i ask why we have `res` in `ResourceInfo`, can we directly use `resourceName` (`fullName`) to generate the submit command? @caishunfeng @SbloodyS
```java
return mainJar.getId() == null
? mainJar.getRes()
// when update resource maybe has error
: mainJar.getResourceName().replaceFirst("/", "");
```
The above code returns wrong `resName`, for example, `resourceName` is `hdfs://xxx:9000/dolphinscheduler/resources/spark-examples_2.12-3.1.2.jar`, after replacing, it will return `hdfs:/xxx:9000/dolphinscheduler/resources/spark-examples_2.12-3.1.2.jar`.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org