windows下定时任务执行kettle Job
来源:互联网 发布:淘宝大唐小说 编辑:程序博客网 时间:2024/04/28 11:48
通常情况下,在工作中在数据抽取过程中,会使用到job进行定时抽取。本文主要介绍kettle在windows下定时执行job。
备注:我用的kettle版本是5.1.0
1、准备编写kettle.bat脚本
脚本内容如下:
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、针对以上我来介绍下
首先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下建立执行任务
备注:我用的kettle版本是5.1.0
1、准备编写kettle.bat脚本
脚本内容如下:
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、针对以上我来介绍下
首先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
- linux下使用crond定时执行kettle的job任务
- kettle在windows下执行job脚本 定时
- windows定时执行kettle的job
- windows定时执行kettle的job
- linux下使用crond定时执行kettle的job
- linux下使用crontab定时执行kettle的job布曙
- windows下任务计划程序调用kettle job
- oracle 定时执行任务-job
- oralce job 定时执行任务
- oracle job 定时任务,定时执行
- windows下python设置定时任务(定时执行脚本)
- 利用oracle的job定时执行任务
- oracle job建立(定时执行任务)
- Oracle中的定时执行任务job
- Oracle JOB的建立,定时执行任务
- 朱鸿恣论文翻译:Exploiting Temporal Dependency for Opportunistic Forwarding in Urban Vehicular Networks
- Google App再度改版,利用机器学习推送个性化Feed服务
- 【docker虚拟化技术】docker学习笔记
- linux(deepin)在启动器上制作启动图标
- C#197课的主要内容
- windows下定时任务执行kettle Job
- z-index不起作用的大坑
- Android各国语言对照表
- UnityAnalytics使用手册
- wtaxi
- spring mvc Interceptor 返回json数据
- Java回调简单理解
- 星辰-感受新东方的独特魅力
- 【学习笔记】TCP/IP基础(1)