zoukankan      html  css  js  c++  java
  • Kettle_使用Pan.bat执行转换、Kitchen.bat执行作业

    注意:使用bat文件执行速度比执行在spoon.bat中执行慢很多

    一、使用Pan.bat执行转换
    Pan.bat文件路径:pdi-ce-6.1.0.1-196data-integration
    需求:执行转换(pdi-ce-6.1.0.1-196data-integrationsamples ransformationsAdd value fields changing sequence - basic example.ktr)并将日志输出到文本文件
    1、ktr文件名有空格等特殊字符,pan.bat无法识别,所以需要重命名。本例中重命名为AddExample.ktr并放在C盘根目录
    2、定位到目录pdi-ce-6.1.0.1-196data-integration
    3、执行命令
    pan /file C:AddExample.ktr /level Detailed /logfile C:1.log
    a) /file:表示要执行的转换文件
    b) /level 日志级别 (Basic, Detailed, Debug, Rowlevel, Error, Nothing)
    c)/logfile 日志文件(append方式添加)


    二、使用Kitchen.bat执行转换
    Kitchen.bat文件路径:pdi-ce-6.1.0.1-196data-integration
    需求:执行转换(pdi-ce-6.1.0.1-196data-integrationsamplesjobsevaluate-result-rowsEvaluate result rows.kjb)并将日志输出到文本文件
     
    1、kjb文件名有空格等特殊字符,Kitchen.bat无法识别,所以需要重命名。本例中重命名为EvaluateResultRows.kjb并放在C盘根目录
    2、定位到目录pdi-ce-6.1.0.1-196data-integration
    3、执行命令
    kitchen /file C:EvaluateResultRows.kjb /level Basic /logfile C:2.log
    a) /file:表示要执行的转换文件
    b) /level 日志级别 (Basic, Detailed, Debug, Rowlevel, Error, Nothing)
    c)/logfile 日志文件
     
    三、使用批处理执行pan、kitchen命令
    1、执行pan(exe1.bat)
    cd C:UsersAdministratorDesktoppdi-ce-6.1.0.1-196data-integration
    pan /file C:AddExample.ktr /level Detailed /logfile C:1.log

    2、执行kitchen(exe1.bat)
    cd C:UsersAdministratorDesktoppdi-ce-6.1.0.1-196data-integration
    kitchen /file C:EvaluateResultRows.kjb /level Basic /logfile C:2.log

    经测试发现存在问题:在一个bat里不行执行多个pan命令或pan和kitchen命令同时执行




  • 相关阅读:
    python
    python中xrange和range的区别
    python
    shell用if
    shell调用shell
    An unhandled exception of type 'System.TypeInitializationException' occurred in System.ServiceModel.dll
    C# 获取存在DataTable1不存在DataTable2的数据的快速方法
    textbox自动提示
    全面理解面向对象的 JavaScript(转载)
    C#中文乱码转换
  • 原文地址:https://www.cnblogs.com/gossip/p/5574929.html
Copyright © 2011-2022 走看看