使用Python运行Talend作业 [英] Running Talend jobs with Python

查看:53
本文介绍了使用Python运行Talend作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试自动化一些本应手动执行的操作,因此我可以运行一个python脚本,而无需执行大量步骤.我想找到一种从python脚本运行Talend作业的方法.

I'm trying to automate some stuff I would otherwise have to do manually, so I can run one python script instead of taking a whole bunch of steps. I want to find a way to run a Talend job from the python script.

我该如何完成?甚至有可能吗?

How do I accomplish this? Is it even possible?

推荐答案

糟糕!对不起.
在Studio中,构建作业以获得可以从命令行启动的自主作业.
从生成的存档中提取文件.
搜索文件夹"script/yourJobname".
根据您喜欢的哪一种,从.bat或.sh中检查一种语法.使用subprocess.call(或通过其他方式从Python执行jar文件)启动jar文件.

Oops! sorry.
From the Studio, build the job to get an autonomous job you can launch from command line.
Extract the files from the generated archive.
Search for folder "script/yourJobname".
Check the syntax from one of the .bat or .sh depending of which one you prefer. Launch the jar file using subprocess.call (or other way to execute a jar file from Python).

希望这会有所帮助.
TRF

Hope this helps.
TRF

这篇关于使用Python运行Talend作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆