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

  • 相关阅读:
    Step by step Dynamics CRM 2013安装
    SQL Server 2012 Managed Service Account
    Step by step SQL Server 2012的安装
    Step by step 活动目录中添加一个子域
    Step by step 如何创建一个新森林
    向活动目录中添加一个子域
    活动目录的信任关系
    RAID 概述
    DNS 正向查找与反向查找
    Microsoft Dynamics CRM 2013 and 2011 Update Rollups and Service Packs
  • 原文地址:https://www.cnblogs.com/stuka/p/11246900.html
Copyright © 2011-2022 走看看