Dolphinschedular 参数传递

创建NodeA节点:

配置脚本:

monthfirstDay=$(date -d "${yesterday}" "+%Y-%m-01")

echo $monthfirstDay

echo '${setValue(thisMonthfirstDayfm='${monthfirstDay}')}'

echo 'thisMonthfirstDayfm:' ${thisMonthfirstDayfm}

lastMonthdayfm=$(date -d "${monthfirstDay} -1 day" "+%Y-%m-%d")

lastMonthday=$(date -d "${monthfirstDay} -1 day" "+%Y%m%d")

echo $lastMonthday

echo $lastMonthdayfm

echo '${setValue(lastMonthlastDay='${lastMonthday}')}'

echo 'lastMonthlastDay:' ${lastMonthlastDay}


 

echo '${setValue(lastMonthlastDayfm='${lastMonthdayfm}')}'

echo 'lastMonthlastDayfm:' ${lastMonthlastDayfm}

Dolphinschedular 参数传递_第1张图片

yesterday   ${system.biz.date}

创建NodeB 节点:  配置前置任务   在脚本中直接使用变量即可

Dolphinschedular 参数传递_第2张图片

你可能感兴趣的:(服务器,linux,运维)