zoukankan      html  css  js  c++  java
  • (转)Kettle命令行

    kettle使用命令行来运行ktr和kjb

    1:cmd方式运行

    1.ktr的运行:运行transformation文件是通过Pan.bat来运行的。

    打开cmd命令行窗口,转到Pan.bat所在的目录,如d:data-integration,然后执行文件的命令为:pan /file D:etltestEtltestTrans.ktr

    2.kjb的运行:运行job文件是通过kitchen.bat来运行的。

    打开cmd命令行窗口,转到Pan.bat所在的目录,如d:data-integration,然后执行文件的命令为:kitchen /file D:etltestjobOK.kjb

    2.bat文件运行

    如果觉得通过打开命令行输入麻烦,我们可以把它写在一个批处理文件中。如:

    d:

    cd D:data-integration

    pan /file D:etltestEtltestTrans.ktr

    把这些内容保存在pan.bat里,通过双击panKtr.bat就可以执行ktr文件了。

    同样地,我们把下面的内容:

    d:

    cd D:data-integration

    kitchen /file D:etltestjobOK.kjb

    保存在kitchenKjb.bat里,双击它,也可以执行kjb文件。

    2 :kettle  kitchen.bat 后面参数说明

    Options:
    /rep        : Repository name
    /user       : Repository username
    /pass       : Repository password
    /job        : The name of the job to launch
    /dir        : The directory (dont forget the leading /)
    /file       : The filename (Job XML) to launch
    /level      : The logging level (Basic, Detailed, Debug, Rowlevel, Error, Nothing)
    /logfile    : The logging file to write to
    /listdir    : List the directories in the repository
    /listjobs   : List the jobs in the specified directory
    /listrep    : List the available repositories
    /norep      : Do not log into the repository
    /version    : show the version, revision and build date
    /param      : Set a named parameter <NAME>=<VALUE>. For example -param:FOO=bar
    /listparam : List information concerning the defined parameters in the specified job.
    /export     : Exports all linked resources of the specified job. The argument is the name of a ZIP
    file.


    而options 后面可以是=也可以是:也可以是空格

    kitchen.bat /file d:   或者 -file=D: 或者/file:D:

    下面是windows系统下一个完整的执行kettle程序的 bat 批处理文件的内容

    ======================================

    e:

    cd E:Toolsdata-integration
    Kitchen.bat -rep repname -user admin -pass admin -dir /dirname -job jobname -level=basic>D:kettlelogkettlelog.log

     链接:http://www.cnblogs.com/wxjnew/p/3620792.html

  • 相关阅读:
    Wpf 数据绑定实例2
    Wpf 数据绑定简介、实例1
    Wpf ListBox数据绑定实例1--绑定字典集合
    Wpf控件ListBox使用实例2
    阿里UX矢量图标库–最强大的矢量图标库(Icon font制作力荐工具)
    Web字体工具整理,网页图标字体以及使用方法整理
    ICOMOON!强悍的WEB字体图标制造器/Web字体使用实例
    window.applicationCache事件,介绍
    HTML5 离线缓存忽略主页实例
    条件注释判断浏览器版本<!--[if lt IE 9]>(转载)
  • 原文地址:https://www.cnblogs.com/fkissx/p/5511159.html
Copyright © 2011-2022 走看看