[INFO] 2023-06-06 01:51:06.437 +0000 - -> Traceback (most recent call last): File “/opt/datax/bi

[LOG-PATH]: /tmp/dolphinscheduler/worker-server/logs/20230606/9802990205120_1-29-29.log, [HOST]:  Host{address='10.254.8.211:1234', ip='10.254.8.211', port=1234}
[INFO] 2023-06-06 01:51:05.431 +0000 - datax task params {"localParams":[],"resourceList":[],"customConfig":0,"dsType":"MYSQL","dataSource":4,"dtType":"MYSQL","dataTarget":4,"sql":"select id from temp","targetTable":"temp","jobSpeedByte":0,"jobSpeedRecord":1000,"preStatements":[],"postStatements":[],"xms":1,"xmx":1}
[INFO] 2023-06-06 01:51:05.434 +0000 - tenantCode user:dolphinscheduler, task dir:29_29
[INFO] 2023-06-06 01:51:05.434 +0000 - create command file:/tmp/dolphinscheduler/exec/process/9795372525120/9802990205120_1/29/29/29_29.command
[INFO] 2023-06-06 01:51:05.434 +0000 - command : #!/bin/bash
BASEDIR=$(cd `dirname $0`; pwd)
cd $BASEDIR
source /tmp/dolphinscheduler/worker-server/conf/dolphinscheduler_env.sh
/tmp/dolphinscheduler/exec/process/9795372525120/9802990205120_1/29/29/29_29_node.sh
[INFO] 2023-06-06 01:51:05.435 +0000 - task run command: sudo -u dolphinscheduler -E bash /tmp/dolphinscheduler/exec/process/9795372525120/9802990205120_1/29/29/29_29.command
[INFO] 2023-06-06 01:51:05.436 +0000 - process start, process id is: 19557
[INFO] 2023-06-06 01:51:05.481 +0000 - process has exited, execute path:/tmp/dolphinscheduler/exec/process/9795372525120/9802990205120_1/29/29, processId:19557 ,exitStatusCode:1 ,processWaitForStatus:true ,processExitValue:1
[INFO] 2023-06-06 01:51:06.437 +0000 -  -> Traceback (most recent call last):
	  File "/opt/datax/bin/datax.py", line 18, in <module>
	    ispy2 = sys.version_info.major == 2
	AttributeError: 'tuple' object has no attribute 'major'
[INFO] 2023-06-06 01:51:06.437 +0000 - FINALIZE_SESSION

报错信息如上所示:ispy2 = sys.version_info.major == 2 报错,该段代码目的是获取系统中python版本号

[INFO] 2023-06-06 01:51:06.437 +0000 - -> Traceback (most recent call last): File “/opt/datax/bi_第1张图片
修改 datax下的 datax/bin/datax.py 文件

[INFO] 2023-06-06 01:51:06.437 +0000 - -> Traceback (most recent call last): File “/opt/datax/bi_第2张图片

你可能感兴趣的:(Python,python,datax)