linux如何给datax传递参数
解决方法:
假如要给test.json传递当前时间, -p "-Dday=${YESTERDAY}" 就是关键
YESTERDAY=`date +%s`
nohup /usr/bin/python2 ${DATAX_PATH}/datax.py -p "-Dday=${YESTERDAY}" test.json &
test.json的where属性用到参数:
"where": "answertime > ${day}"
向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti