Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [JAVA TASK] Unable to access jarfile #15902

Closed
3 tasks done
1032851561 opened this issue Apr 24, 2024 · 3 comments · Fixed by #15906
Closed
3 tasks done

[Bug] [JAVA TASK] Unable to access jarfile #15902

1032851561 opened this issue Apr 24, 2024 · 3 comments · Fixed by #15906
Assignees
Labels
bug Something isn't working priority:high

Comments

@1032851561
Copy link

1032851561 commented Apr 24, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

[INFO] 2024-04-24 15:40:09.119 +0800 - #!/bin/bash
BASEDIR=$(cd dirname $0; pwd)
cd $BASEDIR
export JAVA_HOME=/opt/java/openjdk
${JAVA_HOME}/bin/java -classpath .:/tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74:/tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74//tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74/Test-1.0-SNAPSHOT.jar -jar /tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74//tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74/Test-1.0-SNAPSHOT.jar arg1 arg2
[INFO] 2024-04-24 15:40:09.119 +0800 - ****************************** Script Content *****************************************************************
[INFO] 2024-04-24 15:40:09.119 +0800 - Executing shell command : sudo -u root -i /tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74/58_74.sh
[INFO] 2024-04-24 15:40:09.126 +0800 - process start, process id is: 369
[INFO] 2024-04-24 15:40:10.126 +0800 - ->
Error: Unable to access jarfile /tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74//tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74/Test-1.0-SNAPSHOT.jar
[INFO] 2024-04-24 15:40:10.127 +0800 - process has exited. execute path:/tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74, processId:369 ,exitStatusCode:1 ,processWaitForStatus:true ,processExitValue:1

What you expected to happen

the jar path contains twice execute path , it should be once.

  • wrong:
    /tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74//tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74/Test-1.0-SNAPSHOT.jar -jar
  • expect:
    /tmp/dolphinscheduler/exec/process/root/13364857834464/13374826096608_6/58/74/Test-1.0-SNAPSHOT.jar -jar

How to reproduce

  1. upload jar to resource center(hfds)
  2. create java task (jar type) and select the jar
  3. run task and log error

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@1032851561 1032851561 added bug Something isn't working Waiting for reply Waiting for reply labels Apr 24, 2024
@ruanwenjun ruanwenjun removed the Waiting for reply Waiting for reply label Apr 25, 2024
@ruanwenjun ruanwenjun self-assigned this Apr 25, 2024
@ruanwenjun
Copy link
Member

Should be fixed by #15906

@1032851561
Copy link
Author

Should be fixed by #15906

whitch version will fix.

@ruanwenjun
Copy link
Member

Should be fixed by #15906

whitch version will fix.

3.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants