Pentaho-kettle:需要根据用户输入动态创建 ETL 作业

发布于 2024-11-19 01:36:21 字数 351 浏览 11 评论 0原文

在我的应用程序中,用户可以指定其文件的格式。根据用户输入,我们动态创建 SSIS 包。

http://lakshmik.blogspot.com/2005/05...eate -ssis.html

动态创建的SSIS包用于处理用户的文件。

我们想要评估 Pentaho-Kettle 是否满足此要求。 Kettle 是否可以根据用户的输入动态创建 ETL 作业?

如果不是 Pentaho,是否有任何 Java ETL 工具允许动态创建 ETL 作业?

In my application, user can specify the format of their file. Based on user input we dynamically create SSIS package.

http://lakshmik.blogspot.com/2005/05...eate-ssis.html

Dynamically created SSIS package is used for processing user's files.

We want to evaluate Pentaho-Kettle for this requirement. Is this possible with Kettle to dynamically create ETL jobs based on user's inputs?

If not Pentaho, is there any Java ETL tool which allows use to dynamically create ETL jobs?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

哭泣的笑容 2024-11-26 01:36:21

我不了解其他人,但这在 Kettle 中传统上是相当棘手的,但人们已经通过各种方式做到了。

最好的选择是(全新的)注入步骤,它可以让您使用元数据做一些非常聪明的事情 - 但它只适用于一些基本步骤。我认为它会做你想要的,请在 Matt Casters(PDI 创建者和上帝)博客中阅读相关内容:

http://www.ibridge.be/?s=inject&submit=Go

如果这不起作用;那么您的其他选择是沿着通用字段名称路线(令人讨厌)或动态生成转换。这比听起来更容易 - 但对于 ETL 工具,您需要比平常更多地参与 Java 方面。

I dont know about others, but this is traditionally quite tricky in Kettle but people have done it in various ways.

The best option for this is the (brand new) inject step which lets you do really clever stuff with metadata - but it only works for some basic steps. I think it will do what you want, read about it in Matt Casters (PDI Creator and god) blog here:

http://www.ibridge.be/?s=inject&submit=Go

If that doesnt work; then your other options are to go down the generic field name route (nasty) or dynamically generate the transformation. This is easier than it sounds - but you will need to get much more heavily involved in the Java side than usual for an ETL tool.

强者自强 2024-11-26 01:36:21

这是可能的,而且不是很难。

您可以使用 Kettle API 动态创建可以执行 Kettle 所做的任何操作的转换。 GUI 设计器使用 API 来创建转换,因此您可以使用 GUI 执行的任何操作都可以通过 API 执行。

如果您查看“测试”源代码树,您会发现很多有关如何动态创建转换的示例。

It is possible, and not very hard.

You can use the Kettle API to dynamically create transformations that can do anything Kettle does. The GUI designer uses the API to create transformations, so anything you can do with the GUI, you can do thru the API.

If you look in the 'test' source tree you will find lots of examples of how to create transformations dynamically.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文