简体   繁体   English

使用 Java 创建 Pentaho 转换和步骤

[英]Create a Pentaho Transformation & Steps using Java

I am very new to Pentaho/ETL and need expert advise to complete my assignment.我对 Pentaho/ETL 很陌生,需要专家建议来完成我的任务。 Actually, we are trying to integrate Pentaho Steps/Jobs with our web based platform.实际上,我们正在尝试将 Pentaho Steps/Jobs 与我们基于 Web 的平台集成。 We are designing a similar interface where user will get the list of steps and can pick anystep to create a transformation.我们正在设计一个类似的界面,用户将在其中获得步骤列表并可以选择任何步骤来创建转换。 We are developing a similar looking HTML interfaces to all pentaho steps dialog, We will send the transformation data (including steps / hops) in JSON format to backend API's.我们正在为所有 pentaho 步骤对话框开发一个类似的 HTML 界面,我们将以 JSON 格式将转换数据(包括步骤/跳跃)发送到后端 API。 Backend API will parse the JSON and create the steps / transMeta for the Kettle core engine.后端 API 将解析 JSON 并为 Kettle 核心引擎创建步骤/transMeta。 Can anyone please help me on how to create Steps/Transformation in Java ?, You can also suggest a good design strategy to implement this scenario.任何人都可以帮助我如何在 Java 中创建步骤/转换吗?,您还可以建议一个好的设计策略来实现这个场景。 Your help is much appreciated.非常感谢您的帮助。

Open any ktr, kjb file in text editor you will find that it is just xml document.在文本编辑器中打开任何 ktr、kjb 文件,您会发现它只是一个 xml 文件。 Study how each step is represented in xml document, how it holds variable, fields, state actually, how steps are connected to each other.研究每个步骤如何在 xml 文档中表示,它如何实际保存变量、字段、状态,步骤如何相互连接。

When u will be able to build xml document that correspond to what u see in browser.当您能够构建与您在浏览器中看到的内容相对应的 xml 文档时。

Generate transformation, or job in xml format and pass it into engine using API in kettle documentation.以 xml 格式生成转换或作业,并使用 Kettle 文档中的 API 将其传递到引擎中。

I think it is gonna take time.我认为这需要时间。 I don't think it worth to translate all steps, but at least u can implement some small subset of necessary steps.我认为不值得翻译所有步骤,但至少您可以实现一些必要步骤的一小部分。

I used a factory patter to write my json parser which parse the request json and create pentaho steps & hops and added to a transformation.我使用工厂模式来编写我的 json 解析器,它解析请求 json 并创建 pentaho 步骤和跃点并添加到转换中。 (Using PDI Java API's). (使用 PDI Java API)。

I am running transformation as a asynch job and maintaining a cache to save the transformation log output.我将转换作为异步作业运行并维护缓存以保存转换日志输出。

I would be happy to help if anyone is looking for detailed explanation.如果有人正在寻找详细的解释,我很乐意提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM