kettle-3(linux环境调度kjb并配置定时读取)

1.首先要把kettle搬到Linux系统下,rar包解压需要操作下,直接提供.tar.gz :

  https://pan.baidu.com/s/1_tzcy8GCKJ7qHzjTSqNnxQ    (7rv6)  [.tar.gz] linux

2.将Windows中配置好的.ktr&.kjb搬到Linux目录下,没滑头,具体配置如下:

#建立.sh的任务脚本如下
/usr/etc/tools/pendaho/data-integration/kitchen.sh -file=/usr/etc/tools/pendaho/kettle/sit/mo-eas_contract.kjb -level=Detailed -logfile=/usr/etc/tools/pendaho/kettle/sit/logs/kettle.log
/usr/etc/tools/pendaho/data-integration/kitchen.sh -file=/usr/etc/tools/pendaho/kettle/sit/mo-eas_paybill_entry.kjb -level=Detailed -logfile=/usr/etc/tools/pendaho/kettle/sit/logs/kettle.log
/usr/etc/tools/pendaho/data-integration/kitchen.sh -file=/usr/etc/tools/pendaho/kettle/sit/mo-eas_paybill_head.kjb -level=Detailed -logfile=/usr/etc/tools/pendaho/kettle/sit/logs/kettle.log

3.配置在crontab中:crontab -e

#minutertment  hour   day   month   week   command
 
#demo
0 9-23 * * 1-5 sh /usr/etc/tools/pendaho/kettle/kettle.sh
0 9-23 * * 1-5 sh /usr/etc/tools/pendaho/kettle/kettle_log.sh
 
#sit-job
0 9-23 * * 1-5 sh /usr/etc/tools/pendaho/kettle/sit/mo-eas_contract.sh
0 9-23 * * 1-5 sh /usr/etc/tools/pendaho/kettle/sit/mo-eas_paybill_head.sh
0 9-23 * * 1-5 sh /usr/etc/tools/pendaho/kettle/sit/mo-eas_paybill_entry.sh
 
#sit-log
0 9-23 * * 1-5 sh /usr/etc/tools/pendaho/kettle/sit/kettle_log.sh
posted @ 2019-07-25 20:52  stuka  阅读(1136)  评论(0编辑  收藏  举报