github-actions[bot] commented on issue #16604: URL: https://github.com/apache/dolphinscheduler/issues/16604#issuecomment-2342580146
### 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 [LOG-PATH]: /opt/dolphinscheduler3.19/worker-server/logs/20240911/26_1-239277-364644.log, [HOST]: Host{address='192.168.11.156:1234', ip='192.168.11.156', port=1234} [INFO] 2024-09-11 11:26:37.167 +0800 - Begin to pulling task [INFO] 2024-09-11 11:26:37.170 +0800 - Begin to initialize task [INFO] 2024-09-11 11:26:37.170 +0800 - Set task startTime: Wed Sep 11 11:26:37 GMT+08:00 2024 [INFO] 2024-09-11 11:26:37.171 +0800 - Set task envFile: /opt/dolphinscheduler3.19/worker-server/conf/dolphinscheduler_env.sh [INFO] 2024-09-11 11:26:37.171 +0800 - Set task appId: 239277_364644 [INFO] 2024-09-11 11:26:37.171 +0800 - End initialize task [INFO] 2024-09-11 11:26:37.172 +0800 - Set task status to TaskExecutionStatus{code=1, desc='running'} [INFO] 2024-09-11 11:26:37.172 +0800 - TenantCode:bclduser check success [INFO] 2024-09-11 11:26:37.172 +0800 - ProcessExecDir:/tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644 check success [INFO] 2024-09-11 11:26:37.173 +0800 - Resources:{} check success [INFO] 2024-09-11 11:26:37.173 +0800 - Task plugin: SHELL create success [INFO] 2024-09-11 11:26:37.173 +0800 - shell task params {"resourceList":[],"localParams":[],"rawScript":"java -jar /opt/data/scripts/hunan-repeat/syn-block-info-farm-1.0.0.jar 1 11","conditionResult":{"successNode":[""],"failedNode":[""]},"dependence":{}} [INFO] 2024-09-11 11:26:37.173 +0800 - Success initialized task plugin instance success [INFO] 2024-09-11 11:26:37.174 +0800 - Success set taskVarPool: [] [INFO] 2024-09-11 11:26:37.174 +0800 - raw script : java -jar /opt/data/scripts/hunan-repeat/syn-block-info-farm-1.0.0.jar 1 11 [INFO] 2024-09-11 11:26:37.174 +0800 - task execute path : /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644 [INFO] 2024-09-11 11:26:37.174 +0800 - Begin to create command file:/tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/239277_364644.command [INFO] 2024-09-11 11:26:37.175 +0800 - Success create command file, command: #!/bin/bash BASEDIR=$(cd `dirname $0`; pwd) cd $BASEDIR source /opt/dolphinscheduler3.19/worker-server/conf/dolphinscheduler_env.sh /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/239277_364644_node.sh [INFO] 2024-09-11 11:26:37.180 +0800 - task run command: sudo -u bclduser -i bash /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/239277_364644.command [INFO] 2024-09-11 11:26:37.181 +0800 - process start, process id is: 5063 [INFO] 2024-09-11 11:26:38.182 +0800 - -> mysql mysql jdbc:mysql://192.168.11.198:3306/dolphinscheduler SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/data/scripts/hunan-repeat/syn-block-info-farm-1.0.0.jar!/BOOT-INF/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/data/scripts/hunan-repeat/syn-block-info-farm-1.0.0.jar!/BOOT-INF/lib/toolkit-hbase-CDH5-20210122.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] [INFO] 2024-09-11 11:26:39.183 +0800 - -> . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.5.RELEASE) 2024-09-11 11:26:38.807 INFO 5091 --- [ main] uml.tech.App : Starting App v1.0.0 on cdh-slave6 with PID 5091 (/opt/data/scripts/hunan-repeat/syn-block-info-farm-1.0.0.jar started by bclduser in /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644) 2024-09-11 11:26:38.808 DEBUG 5091 --- [ main] uml.tech.App : Running with Spring Boot v2.1.5.RELEASE, Spring v5.1.7.RELEASE 2024-09-11 11:26:38.808 INFO 5091 --- [ main] uml.tech.App : The following profiles are active: mysql [INFO] 2024-09-11 11:26:43.184 +0800 - -> log4j:WARN No appenders could be found for logger (org.apache.htrace.core.Tracer). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. [INFO] 2024-09-11 11:26:44.185 +0800 - -> 2024-09-11 11:26:43.685 INFO 5091 --- [ main] uml.tech.App : Started App in 5.466 seconds (JVM running for 6.435) 开始更新湖南重复地块 2024-09-11 11:26:44.125 DEBUG 5091 --- [ main] u.t.m.f.F.getHunanWorkInfo60Days : ==> Preparing: select id, did, jobStartLat, jobStartLon, currentBlockNumber, jobEndTime, province, city, district, jobArea as area, jobStartTime, jobType, jobEquipment, wkt_poly as wktPoly, 0 as dataSource, repeatFlag from farm_work where (did like 'NJ%' OR did like 'EC%') and fixFlag !=1 and jobType= '3' and (jobEquipment ='3' or jobEquipment = '7') and DATEDIFF(now(), insertTime) < 60 and wkt_poly is not null and wkt_poly !='' and province = 11 union all select id, did, jobStartLat, jobStartLon, currentBlockNumber, jobEndTime, province, city, district, jobArea as area, jobStartTime, jobType, jobEquipment, wkt_poly as wktPoly, 1 as dataSource, repeatFlag from farm_work_split where (did like 'NJ%' OR did like 'EC%') and jobType= '3' and (jobEquipment ='3' or jobEquipment = '7') and DATEDIFF(now(), insertTime) < 60 and wkt_poly is not null and wkt_poly !='' and province = 11 order by jobEndTime desc; 2024-09-11 11:26:44.154 DEBUG 5091 --- [ main] u.t.m.f.F.getHunanWorkInfo60Days : ==> Parameters: [INFO] 2024-09-11 11:26:44.444 +0800 - process has exited. execute path:/tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644, processId:5063 ,exitStatusCode:0 ,processWaitForStatus:true ,processExitValue:0 [INFO] 2024-09-11 11:26:44.447 +0800 - Send task execute result to master, the current task status: TaskExecutionStatus{code=7, desc='success'} [INFO] 2024-09-11 11:26:44.447 +0800 - Remove the current task execute context from worker cache [INFO] 2024-09-11 11:26:44.448 +0800 - The current execute mode isn't develop mode, will clear the task execute file: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644 [ERROR] 2024-09-11 11:26:44.450 +0800 - Delete task execute file: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644 failed, this will not affect the task status, but you need to clear this manually org.apache.commons.io.IOExceptionList: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644 at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:331) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1192) at org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.clearTaskExecPathIfNeeded(WorkerTaskExecuteRunnable.java:283) at org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.afterExecute(WorkerTaskExecuteRunnable.java:115) at org.apache.dolphinscheduler.server.worker.runner.DefaultWorkerDelayTaskExecuteRunnable.afterExecute(DefaultWorkerDelayTaskExecuteRunnable.java:54) at org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.run(WorkerTaskExecuteRunnable.java:176) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Cannot delete file: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/bin at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1344) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:324) ... 12 common frames omitted Caused by: java.nio.file.AccessDeniedException: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/bin/winutils.exe at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:161) at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:37) at java.nio.file.Files.walkFileTree(Files.java:2670) at java.nio.file.Files.walkFileTree(Files.java:2742) at org.apache.commons.io.file.PathUtils.visitFileTree(PathUtils.java:971) at org.apache.commons.io.file.PathUtils.deleteDirectory(PathUtils.java:434) at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:391) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1341) ... 13 common frames omitted [INFO] 2024-09-11 11:26:45.186 +0800 - -> 2024-09-11 11:26:44.210 DEBUG 5091 --- [ main] u.t.m.f.F.getHunanWorkInfo60Days : <== Total: 0 [INFO] 2024-09-11 11:26:45.186 +0800 - FINALIZE_SESSION ### What you expected to happen shell process   ### How to reproduce run shell process with tenant. ### Anything else _No response_ ### Version 3.1.x ### 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]
