shell-kitchen-job-资源库

job.shell:
新建shell,使用vi

#!/bin/sh
export JAVA_HOME=/usr/local/app/jdk1.8.0_66
export LANG=en_US.UTF-8
job_name=$2
echo “------------start--------------”
cd ~/kettle/data-integration
sh kitchen.sh -rep=kettle -user=admin -pass=admin -dir=/BI_ODS/$1 -job=KaTeX parse error: Expected group after '_' at position 42: …/data/logs/jobs_̲{job_name}.log &
echo “-------------end--------------”

crontab 设置
参数1:biz 动态包名
参数2:执行job文件名
sh resource_jobs.sh biz biz_job
定时
30 0 * * * sh ~/kettle/shell/resource_jobs.sh biz biz_job >> ~/kettle/shell/resource_jobs.log &

svn管理资源信息:
https://www.cnblogs.com/zigewb/p/4504199.html

sh kitchen.sh -rep=kettle -user=admin -pass=admin -dir=/BI_ODS/biz -job=biz_job -level=Basic >> ~/kettle/shell/logs/biz_job.log &

你可能感兴趣的:(开源)