Comments (2)
duplicated with #15902
from dolphinscheduler.
I deployed the code and did some test for Java Task in Jar Model.
Current Code will fail and if I remove ".append(taskRequest.getExecutePath()).append(FOLDER_SEPERATOR)", the task will succeed.
The following content are logs on my cluster
Current code
[INFO] 2024-06-28 16:13:02.398 +0800 - #!/bin/bash
BASEDIR=$(cd dirname $0
; pwd)
cd $BASEDIR
${JAVA_HOME}/bin/java -classpath .:/tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/146/155:/tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/146/155/libs/jnpf-dolphin-java-task-print-args.jar -jar /tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/146/155//tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/146/155/libs/jnpf-dolphin-java-task-print-args.jar 123 456 /tmp/user
[INFO] 2024-06-28 16:13:02.398 +0800 - ****************************** Script Content *****************************************************************
[INFO] 2024-06-28 16:13:02.399 +0800 - Executing shell command : sudo -u dolphinscheduler -i /tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/146/155/146_155.sh
[INFO] 2024-06-28 16:13:02.402 +0800 - process start, process id is: 3605242
[INFO] 2024-06-28 16:13:03.402 +0800 - ->
Error: Unable to access jarfile /tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/146/155//tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/146/155/libs/jnpf-dolphin-java-task-print-args.jar
[INFO] 2024-06-28 16:13:03.403 +0800 - process has exited. execute path:/tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/146/155, processId:3605242 ,exitStatusCode:1 ,processWaitForStatus:true ,processExitValue:1
After Remove .append(taskRequest.getExecutePath()).append(FOLDER_SEPERATOR)
[INFO] 2024-06-28 16:24:01.829 +0800 - #!/bin/bash
BASEDIR=$(cd dirname $0
; pwd)
cd $BASEDIR
${JAVA_HOME}/bin/java -classpath .:/tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/148/157:/tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/148/157/libs/jnpf-dolphin-java-task-print-args.jar -jar /tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/148/157/libs/jnpf-dolphin-java-task-print-args.jar 123 456 /tmp/user
[INFO] 2024-06-28 16:24:01.829 +0800 - ****************************** Script Content *****************************************************************
[INFO] 2024-06-28 16:24:01.830 +0800 - Executing shell command : sudo -u dolphinscheduler -i /tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/148/157/148_157.sh
[INFO] 2024-06-28 16:24:01.838 +0800 - process start, process id is: 3607346
[INFO] 2024-06-28 16:24:02.839 +0800 - ->
Run jnpf dolphin scheduler java sample task
args 0 is 123
args 1 is 456
args 2 is /usr/root/local
[INFO] 2024-06-28 16:24:02.840 +0800 - process has exited. execute path:/tmp/dolphinscheduler/exec/process/dolphinscheduler/13289909089664/14095886576288_4/148/157, processId:3607346 ,exitStatusCode:0 ,processWaitForStatus:true ,processExitValue:0
from dolphinscheduler.
Related Issues (20)
- dolphinscheduler-ui build HOT 1
- [Improvement] The default zk connect timeout is 600ms will cause connect failed
- [Bug] [dolphinscheduler-master] The environment is specified when running the workflow, and the environment defined in the task will not be replaced. HOT 1
- [DSIP-49][Workflow] Rerun across workflow or project with dependency automatically
- [Bug] Timed task not trigger HOT 12
- [Bug] [WEB] Workflow instance page forms cannot be paginated HOT 1
- [Bug] [Api] Using the TaskDefinitionController-save-single interface can lead to duplicate predecessor tasks. HOT 1
- [Feature][Flink-CDC] Support FlinkCDC Task HOT 6
- [DSIP-50][UDF Manage] Remove udf manage function
- [Bug] [dolphinscheduler-task-java] Cannot Compile java task due to the exec folder owner permission issue HOT 2
- [DSIP-51][Task] Remove unused pigeon task plugin HOT 1
- [Bug] Worker overload will cause task failed
- [Bug] Task cannot select resource files since listing is 404 HOT 1
- [Bug] E2E health check url is incorrect
- [Feature][E2E] Add python using file e2e test case
- [Bug] [dolphinscheduler-dao][3.1.9] FLINK_STREAM taskใin Stream Task list Page , If the process version corresponding to the task instance is different from the current process version HOT 1
- [DSIP-52][Task] Add single task integration test HOT 8
- [Improvement][Worker] Split TenantConfig from WorkerConfig HOT 1
- [Bug] [3.2.1] upload jar HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dolphinscheduler.