Kettle的Kitchen和Span
Kitchen——工作(job)执行器 (命令行方式)
-rep : Repository name 任务包所在存储名
-user : Repository username 执行人
-pass : Repository password 执行人密码
-job : The name of the job to launch 任务包名称
-dir : The directory (don''t forget the leading / or \)
-file : The filename (Job XML) to launch
-level : The logging level (Basic, Detailed, Debug, Rowlevel, Error, Nothing) 指定日志级别
-log : The logging file to write to 指定日志文件
-listdir : List the directories in the repository 列出指定存储中的目录结构。
-listjobs : List the jobs in the specified directory 列出指定目录下的所有任务
-listrep : List the defined repositories 列出所有的存储
-norep : Don''t log into the repository 不写日志
1 命令行调度任务配置方式 转至kitchen.bat 所在根目录下,执行.kitchen /file C:\Users\lenovo\Desktop\textT.kjb /level:Rowlevel>>C:\Users\lenovo\Desktop\test.log
2、后台进程配置运行方式
新建bat 文件在文件中写
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
D:
cd D:\data-integration
kitchen /file C:\Users\lenovo\Desktop\textT.kjb /level:Rowlevel>>C:\Users\lenovo\Desktop\test.log
pause
Span——转换(trasform)执行器 (命令行方式)