并行运行单个作业 [英] Run a single job in parallel

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

问题描述

我需要知道我们如何在 talend 中使用不同的参数并行运行单个作业.

I need to know that how can we run a single job in parallel with different parameters in talend.

推荐答案

答案很简单,但取决于您想要什么,以及您使用的是免费 Talend 还是商业版.

The answer is straightforward, but rather depends on what you want, and whether you are using free Talend or commercial.

就参数而言,请确保您的作业使用上下文变量 - 这是传入参数的首选方式.

As far as parameters go, make sure that your jobs are using context variables - this is the preferred way of passing parameters in.

至于并行运行,有几个选项.

As for running in parallel, there are a few options.

Talend 的工作室是一个 Java 代码生成器,因此您可以导出您的工作(它只是 Java 代码)并在您想要的任何地方运行它.你如何调用它取决于你 - 安排它,手动调用它 N 次,你的电话.显然,如果您的工作涉及共享资源,那么确保并行运行的安全取决于您 - 通常存在并发问题.

Talend's studio is a java code generator, so you can export your job (it's just java code) and run it wherever you want. How you invoke it is up to you - schedule it, invoke it N times manually, your call. Obviously, if your job touches shared resources then making it safe to run in parallel is up to you - the usual concurrency issues apply.

如果您有商业产品,则可以使用 Talend 管理中心 (TAC).TAC 允许您在不同的上下文中多次安排作业.或者,如果您想将并行化逻辑保留在您的作业中,那么可以考虑在一个作业中使用 tParallelize 组件来运行另一个作业 N 次.

If you have the commercial product, then you can use the Talend admin centre (TAC). The TAC allows you to schedule a job more than once with different contexts. Or, if you want to keep the parallelization logic inside your job, then consider using the tParallelize component in one job to run another job N times.

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

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