启动命令模板
可以参考datax.py文件:
ENGINE_COMMAND = "java -server ${jvm} %s -classpath %s ${params} com.alibaba.datax.core.Engine -mode ${mode} -jobid ${jobid} -job ${job}" % (DEFAULT_PROPERTY_CONF, CLASS_PATH)
bash启动命令
java -server -Xms2g -Xmx2g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/DataX/target/datax/datax/log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/DataX/target/datax/datax/log -Dloglevel=info -Dfile.encoding=UTF-8 -Dlogback.statusListenerClass=ch.qos.logback.core.status.NopStatusListener -Djava.security.egd=file:///dev/urandom -Ddatax.home=/DataX/target/datax/datax -Dlogback.configurationFile=/DataX/target/datax/datax/conf/logback.xml -classpath /DataX/target/datax/datax/lib/*:. -Dlog.file.name=le_oracle2mysql_json com.alibaba.datax.core.Engine -mode standalone -jobid -1 -job /Users/huzekang/openSource/DataX/job-sample/oracle2mysql.json