dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] Call hadoop job list in php function,process has exited,exitStatusCode:0,but hadoop job list Been running

Open gaoyu2016 opened this issue 5 years ago • 6 comments

Call hadoop job list in php function,process has exited,exitStatusCode:0,but hadoop job list Been running, worker Been running。 也就是: php主方法run,调用了get_job_list(hadoop job -list)。 [taskAppId=TASK-37-989222-1008351]:[202] - process has exited, execute path:/home/shared/opt/soft/ds/tmp/dolphinscheduler/exec/process/12/37/989222/1008351, processId:30574 ,exitStatusCode:0 正常退出, 但是:后面还在执行php中的方法中的命令:$cmd = "hadoop job -list "; [INFO] 2021-02-23 16:35:30.780 - [taskAppId=TASK-37-989222-1008351]:[415] - find app id: application_1613943087944_61608 [INFO] 2021-02-23 16:35:30.780 - [taskAppId=TASK-37-989222-1008351]:[415] - find app id: application_1613943087944_61791

导致worker进程一直在running。

gaoyu2016 avatar Feb 23 '21 09:02 gaoyu2016

Which version? Because the Hadoop task is still running in YARN, all the task pages show that it is running.

zhuangchong avatar Feb 23 '21 09:02 zhuangchong

1.3.1。 image hadoop job -list 是php主方法调用的函数里面的命令。

gaoyu2016 avatar Feb 23 '21 09:02 gaoyu2016

Look at the 'find app id: application_1613943087944_61791' in your log,It should be your task that starts a yarn task and then starts the PHP monitoring script. The current task display is actually running because the previous yarn task is running


看你的日志上记录‘ find app id: application_1613943087944_61791’ ,应该是你这个任务启动了一个yarn任务,之后启动了php 的监控脚本。目前任务显示真正运行就是因为前面的yarn任务是正在运行状态

zhuangchong avatar Feb 23 '21 11:02 zhuangchong

hadoop job -list

gaoyu2016 avatar Feb 23 '21 11:02 gaoyu2016

hadoop job -list you'd better not to use this command.

this command will list all the running yarn tasks to the task instance log, these yarn tasks will generate many application ids, DolphinScheduler will monitor all these yarn task until to finish, this operation will cost too much time

davidzollo avatar Feb 23 '21 14:02 davidzollo

完美解决!

gaoyu2016 avatar Feb 24 '21 02:02 gaoyu2016