zoukankan      html  css  js  c++  java
  • 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
    作者:stuka

    个性签名:教育的目的是为了获得与个人兴趣爱好相适应并得到国家和社会认可的能力

    如有帮助请点击右下“推荐”

    wechat alipay

  • 相关阅读:
    如何准备面试复试(1)
    如何应对糟糕的面试官(2)
    美国:经济危机让烟民吸烟量增加
    MOV 指令的注意事项
    一个简单的ajax无刷新翻页的程序
    SQL注入漏洞全接触
    php+mysql非暴力查表的注入语句写法总结
    在你的成长过程中,有五个人非常重要
    爱就在那里,不增不减
    php的一些书籍
  • 原文地址:https://www.cnblogs.com/stuka/p/11246900.html
Copyright © 2011-2022 走看看