Carte Status / Kettle Slave Server Status页面显示随机运行的状态,而不是最新运行的状态 [英] Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run

查看:492
本文介绍了Carte Status / Kettle Slave Server Status页面显示随机运行的状态,而不是最新运行的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以编程方式获取特定执行转换的详细信息



到目前为止我尝试了什么



我获得了水壶奴隶服务器/菜单的状态



I am trying to programmatically get the details of a specific execution of a transformation

What I have tried so far

I get the status of the Kettle Slave Server/Carte at

http://localhost:8282/kettle/status/





从这个页面,我可以点击所需的转换,然后我被带到另一个页面它显示了详细信息,并且还具有指向XML输出的链接,以指示特定执行转换的当前状态。链接是这样的:





From this page, I can click on the desired transformation and I am taken to another page that shows the details and also has a link to the XML output to the current status of a specific execution of a transformation. The link is something like this:

http://localhost:8282/kettle/transStatus/?name=trans_name&id=Carte_Ob_ID&xml=y





问题



我有一个最近已经多次运行的转换。对于特定的转换运行,我没有Carte_Obj_ID。所以,我无法在URI中提供它。如果我尝试使用以下URI:





The problem

I have a transformation that has been run multiple times recently. I don't have the Carte_Obj_ID for a specific run of the transformation. So, I can't provide it in the URI. If I try the following URI instead:

http://localhost:8282/kettle/transStatus/?name=trans_name&xml=y





然后我得到随机执行的状态。不是最新的或任何特定的。



目标



我正在编写一个.net GUI,我有这个代码。





then I get the status of a random execution. Not the latest one or any specific one.

The Goal

I am writing a .net GUI where I have this code.

HttpWebRequest req = (HttpWebRequest)WebRequest.
                        Create(@"http://localhost:8282/kettle/transStatus/?
                                name=Trans_Name
                                &id=Carte_Obj_ID
                                &xml=y");
req.Method = "GET";
req.Credentials = new NetworkCredential("cluster", "cluster");                
resp = req.GetResponse();
xmlResultStream = resp.GetResponseStream();
StreamReader readStream = new StreamReader(xmlResultStream, Encoding.UTF8);
String a = readStream.ReadToEnd();





我打算获取转换的特定执行的状态XML,并允许非Pentaho管理员用户通过单击按钮来运行转换。



感谢您的支持任何提前帮助。我从这篇文章中获取灵感[ ^ ]。



更新:



我看到这个旧的JIRA条目 [ ^ ]这个错误被认为是固定的。我有PDI 5.0跟踪版本,不确定这个修复是否确实存在。



I intend to get the status XML of a specific execution of a transformation and allow a non-Pentaho admin user to run transformations at a click of a button.

Thanks for any help in advance. I have taken inspiration from this article[^].

Update:

I saw this old JIRA entry[^] where this bug is said to be fixed. I have PDI 5.0 trail version, not sure if this fix is actually there.

推荐答案

这篇关于Carte Status / Kettle Slave Server Status页面显示随机运行的状态,而不是最新运行的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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