SyntaxError: Non-UTF-8 code starting with ‘\xa1‘ in file /home/dolphinscheduler

谁能想到,dolphinscheduler 报这个是因为调用命令写错了呢?

2021-11-11 14:37:15.520 - ShellTask.java:92 - INFO - shell task params {"rawScript":"/home/dolphinscheduler/miniconda3/envs/py37kevin/bin/python /home/dolphinscheduler/miniconda3/envs/py37kevin/bin/python nation_fire_update_forcast.py","localParams":[],"resourceList":[{"res":"nation_fire_update_forcast.py"},{"res":"util_nrisk.py"}]}
2021-11-11 14:37:15.521 - ShellTask.java:151 - INFO - raw script : /home/dolphinscheduler/miniconda3/envs/py37kevin/bin/python /home/dolphinscheduler/miniconda3/envs/py37kevin/bin/python nation_fire_update_forcast.py
2021-11-11 14:37:15.521 - ShellTask.java:152 - INFO - task dir : /home/dolphinscheduler-master/exec/process/1/30/36810/37102
2021-11-11 14:37:15.521 - ShellCommandExecutor.java:99 - INFO - tenantCode user:dolphinscheduler, task dir:30_36810_37102
2021-11-11 14:37:15.521 - ShellCommandExecutor.java:103 - INFO - create command file:/home/dolphinscheduler-master/exec/process/1/30/36810/37102/30_36810_37102.command
2021-11-11 14:37:15.521 - ShellCommandExecutor.java:116 - INFO - command : #!/bin/sh
BASEDIR=$(cd `dirname $0`; pwd)
cd $BASEDIR
source /home/dolphinscheduler/data1_1T/dolphinscheduler/conf/env/dolphinscheduler_env.sh


/home/dolphinscheduler-master/exec/process/1/30/36810/37102/30_36810_37102_node.sh
2021-11-11 14:37:15.522 - AbstractCommandExecutor.java:329 - INFO - task run command:
sudo -u dolphinscheduler sh /home/dolphinscheduler-master/exec/process/1/30/36810/37102/30_36810_37102.command
2021-11-11 14:37:15.526 - AbstractCommandExecutor.java:158 - INFO - process start, process id is: 1764
2021-11-11 14:37:15.557 - AbstractTask.java:106 - INFO -  ->   File "/home/dolphinscheduler/miniconda3/envs/py37kevin/bin/python", line 1
	SyntaxError: Non-UTF-8 code starting with '\xa1' in file /home/dolphinscheduler/miniconda3/envs/py37kevin/bin/python on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
2021-11-11 14:37:15.558 - AbstractCommandExecutor.java:168 - INFO - process has exited, work dir:/home/dolphinscheduler-master/exec/process/1/30/36810/37102, pid:1764 ,exitStatusCode:1

Guess you like

Origin blog.csdn.net/x1131230123/article/details/121267568