Dolen

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

centos部署kettle定时执行作业(job)

1.centos进入data-integration文件夹下,给启动文件执行权限,命令如下:

chmod +x kitchen.sh

2.执行启动命令

./kitchen.sh

输出以下信息,说明kettle部署成功

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Options:
  -rep            = Repository name
  -user           = Repository username
  -pass           = Repository password

3.在指定目录下创建shell脚本

vim test.sh

4.输入以下内容

/usr/local/kettle/kitchen.sh -file=/usr/local/kettle/test.kjb log=log.timelog ~data +%y%m%d

5.给test.sh赋予执行权限

chmod a+x test.sh

6.编制定时任务

crontab -e

每隔10分钟执行一次

*/10 * * * * bash /usr/local/kettle/test.sh 

7.验证定时任务

crontab -l

8.重启定时任务,配置生效

systemctl restart crond

9.查看状态

systemctl status crond

10.至此配置完成,验证数据是否正确。

 

posted on   Dolen  阅读(905)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· .NET Core 中如何实现缓存的预热?
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 如何调用 DeepSeek 的自然语言处理 API 接口并集成到在线客服系统
· 【译】Visual Studio 中新的强大生产力特性
历史上的今天:
2022-07-11 c# SerialPort HEX there is no data received
点击右上角即可分享
微信分享提示