windows定时执行kettle的job
来源:互联网 发布:造价大师软件 安徽 编辑:程序博客网 时间:2024/04/30 22:31
参考文档:http://blog.csdn.NET/huangqiude/article/details/47172339
1、准备编写kettle.bat脚本
(1)资源库的形式启动JOB
脚本内容如下:D:
cd D:\kettle\data-integration
kitchen.bat -rep JS_JOB -user admin -pass qdhuang -dir /FTP抽取入库 -job jobname -level=basic>D:\JOB_LOG\JOB.log
(2)文件形式
F:
cd F:/download/software/kettle/data-integration
kitchen.bat /norep -file=E:/temp/buildProject.kjb >>E:/etl.log
首先cd 是进入到kettle安装执行文件目录下
-rep 表示的是你的仓库名,也就是你的资源库的名称,这里我的资源库名称就是 JS_JOB
-user 资源库用户名 这里就是admin
-pass 资源库密码 这里是qdhuang 默认的是admin ,为了安全我们可以更改密码
-dir 就是你的job在资源库中存放目录 支持中文的目录
-job job的名称 这里我的job名称就是jobname
-level 日志的级别 我们普通的写basic就可以了,就是最基本的
最后面就是日志了,针对job跑起来的相关信息都会保存在job.log中
3、针对相关的更多参数如下:
/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.
4、windows下建立执行任务
本次操作的是在windowsserver2008下
然后一步一步创建,下一步就可以了
下一步(选择你的.bat执行文件)
下一步(选择job的执行频率)
输入本服务器的密码:必须输入才可以执行job
至此就算完成了操作
0 0
- windows定时执行kettle的job
- windows定时执行kettle的job
- windows下定时任务执行kettle Job
- windows使用计划任务定时执行kettle资源库中的job
- kettle在windows下执行job脚本 定时
- windows使用计划任务定时执行kettle资源库中的job
- linux下使用crond定时执行kettle的job
- linux下使用crontab定时执行kettle的job布曙
- linux下使用crond定时执行kettle的job任务
- 命令行方式执行kettle的JOB
- kettle的job中执行每行
- Kettle定时执行
- 利用oracle的job定时执行任务
- 关于oracle job定时执行的问题
- JOB对ORACLE 的时间定时执行
- oracle定时执行存储过程的job
- oracle定时执行存储过程的job
- oracle定时执行存储过程的job
- J,avaS,cript里面的延迟加载--setTimeout()的用法
- jquery page.js 实现ajax分页
- 第五周-项目一-建立顺序栈算法库
- eclipse导入的java项目转web项目
- okhttp中get请求添加map类型的header
- windows定时执行kettle的job
- 画极坐标图
- Marionette官网学习 - Common Concept
- springmvc 地址栏访问/WEB-INF/views下的jsp无法访问
- 使用oracle 闪回查询找回误更新的数据
- 第五周 项目2-建立链栈算法库
- Validation校验实体类并返回错误信息
- 摄像 图片 视频
- 关于从库seconds_behind_master的真实含义的几个测试。