kettle中含有参数传递的定时任务
(1)新建一个作业(新建->作业),并在控制面板右键:
(2)设置一个命令参数:
(3)把作业的参数传递给转换:
(4)在转换中右键设置转换属性:
(5)接收作业中设置的传递参数:
(6)参数的获取:
(7)用命令行执行此.kjb文件:
进入到kitchen目录下
执行的命令:
数据库设计:
一:
二:
附加( 附加部分转发自:http://www.cnblogs.com/loren-love-xixi/articles/5716774.html):
1.ktr的运行:运行transformation文件是通过Pan.bat来运行的。
打开cmd命令行窗口,转到Pan.bat所在的目录,如d:\data-integration,然后执行文件的命令为:pan /file D:\etltest\EtltestTrans.ktr
2.kjb的运行:运行job文件是通过kitchen.bat来运行的。
打开cmd命令行窗口,转到Pan.bat所在的目录,如d:\data-integration,然后执行文件的命令为:kitchen /file D:\etltest\jobOK.kjb
2.bat文件运行
如果觉得通过打开命令行输入麻烦,我们可以把它写在一个批处理文件中。如:
d:
cd D:\data-integration
pan /file D:\etltest\EtltestTrans.ktr
把这些内容保存在pan.bat里,通过双击panKtr.bat就可以执行ktr文件了。
同样地,我们把下面的内容:
d:
cd D:\data-integration
kitchen /file D:\etltest\jobOK.kjb
保存在kitchenKjb.bat里,双击它,也可以执行kjb文件。
而options 后面可以是=也可以是:也可以是空格
kitchen.bat /file d:\ 或者 -file=D:\ 或者/file:D:\
下面是windows系统下一个完整的执行kettle程序的 bat 批处理文件的内容
======================================
e:
cd E:\Tools\data-integration
Kitchen.bat -rep repname -user admin -pass admin -dir /dirname -job jobname -level=basic>D:\kettlelog\kettlelog.log
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.
- kettle中含有参数传递的定时任务
- java调用kettle向job(任务)和transformation(转换)传递参数实例
- 转:kettle中调度kitchen.bat后面接参数,写定时更新任务
- 关于setTimeout进行参数传递时定时任务失效的解决办法
- java调用kettle向job(任务)和transformation(转换)传递参数实例
- SSIS中执行SQL任务组件参数传递的问题
- [笔记].怎样给μC/OS-II的任务传递参数
- 一个可以查看linux定时任务参数结果的网站
- C#多线程传递参数及任务用法示例
- ETL工具kettle怎么做定时任务
- window.showModalDialog 参数传递中含有特殊字符的处理
- linux crontab命令参数及用法详解--linux自动化定时任务cron
- SpringBoot—动态修改定时任务cron参数
- kettle定时任务_第三方合作方有订单自动发送邮件通知_20161214
- ajax传递参数含有特殊字符解决方案
- oracle 定时运行存储调度 schedule job,传递参数 及相关
- activiti 接收活动任务传递参数(九)
- 任务:参数传递
- Linux系统环境crontab定时任务设置参数实例及常用技巧
- c# 多线程传递参数以及任务