一、服务端设置,就一个命令代-d参数即可,进入debug等待状态
bin/datax.py /apps/datax/job/237724067.json -d
相关命令原理如下:
查看datax.py文件内容:
[root@ bin]# cat datax.py
#!/usr/bin/env python
# -*- coding:utf-8 -*-
def isWindows():
return platform.system() == 'Windows'
DATAX_HOME = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ENGINE_COMMAND = "java -server ${jvm} %s -classpath %s ${params} com.alibaba.datax.core.Engine -mode ${mode} -jobid ${jobid} -job ${job}"
REMOTE_DEBUG_CONFIG = "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=9999"
查看帮助手册
[root@xxx bin]# python datax.py
DataX (DATAX-OPENSOURCE-3.0),