命令行启动kettle

kettle命令启动:

http://download.csdn.net/detail/ludaxin6/9519418

 

 kettle命令启动参数:

http://blog.csdn.net/gleiyu/article/details/38089983

相关详细参数:

  /rep            : Repositoryname 资源库名称

  /user           : Repositoryusername 资源库用户名  

  /pass           : Repositorypassword 资源库密码  

  /job            : Thenameofthejobtolaunch 任务名称

  /dir            : The directory 任务目录 记得开始的/or\

  /file           : The filename 任务XML文件名称  

  /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 builddate 

  /param          : Set a named parameter<NAME>=<VALUE>. For example -param:FOO=bar 

  /listparam      : List information concerning the definedparameters in the specified job. 

  /export         : Exports all linked resources of thespecified job. The argument is the name of a ZIP file. 

  /maxloglines    : The maximum number of log lines that arekept internally by Kettle. Set to 0 to keep all rows (default) 

  /maxlogtimeout  : The maximum age (in minutes) of a log linewhile being kept internally by Kettle. 

                    Set to 0 to keep all rowsindefinitely (default)  



示例:
windows环境下 多个参数用 / 分隔 ,key 和value中间用 : 分隔
     JOB在文件中
  1. kitchen /file:D:/demo/demo.kjb /level:Basic>D:/demo/demo.log  
JOB在数据库中
  1. kitchen /rep etl /user admin /pass admin /dir demo /job demo /level Basic /logfile D:/demo/log/demo.log  

linux环境下 参数用 - 分隔,key 和value 中间用=号分隔
JOB在文件中
  1. kitchen.sh -file=/home/job/demo.kjb >> /home/job/log/demo.log  
JOB在数据库中
  1. kitche.sh -rep=etl -user=admin -pass=admin -level =Basic -job=demo

 

 

 

 

 

 

 

如果在.bat文件中

d:
cd D:\etl\data-integration
kitchen /file C:\Users\for_elegant\Desktop\aramark\amrmark.kjb /level Basic /logfile E:\%date:~0,4%%date:~5,2%%date:~8,2%.log

即:

则会生成一个时间日期为文件名的文件。

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值