[英]Pentaho data integration with REST
I am trying to connect to a rest API over SSL with un/pwd authentication. 我正在尝试使用un / pwd身份验证通过SSL连接到rest API。 I am able to browse the URL - however when I run the job nothing happens.
我可以浏览URL-但是,当我运行作业时,什么也没发生。 Essentially I just want to connect tot he server and output the data in an xml file.
本质上,我只想连接到服务器并在xml文件中输出数据。
Thank you in advance 先感谢您
JOB: 工作:
<?xml version="1.0" encoding="UTF-8"?>
<transformation-steps>
<steps>
<step>
<name>REST Client</name>
<type>Rest</type>
<description/>
<distribute>Y</distribute>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<method>GET</method>
<url>https://blah/services/companies</url>
<urlInField>N</urlInField>
<dynamicMethod>N</dynamicMethod>
<methodFieldName/>
<urlField/>
<bodyField/>
<httpLogin>tbrown</httpLogin>
<httpPassword></httpPassword>
<httpPassword>Encrypted 2be98afc86aa7f2e4fa498679d99a9cce</httpPassword>
<proxyHost/>
<proxyPort/>
<preemptive>N</preemptive>
<trustStoreFile/>
<trustStorePassword/>
<headers>
</headers>
<parameters>
</parameters>
<result>
<name>REST3_DATA</name>
<code>REST3_STATUS</code>
<response_time/>
</result>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>114</xloc>
<yloc>185</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>XML Output</name>
<type>XMLOutput</type>
<description/>
<distribute>Y</distribute>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<encoding>UTF-8</encoding>
<name_space/>
<xml_main_element>Rows</xml_main_element>
<xml_repeat_element>Row</xml_repeat_element>
<file>
<name>C:\temp\output.txt</name>
<extention>xml</extention>
<servlet_output>N</servlet_output>
<do_not_open_newfile_init>N</do_not_open_newfile_init>
<split>N</split>
<add_date>N</add_date>
<add_time>N</add_time>
<SpecifyFormat>N</SpecifyFormat>
<omit_null_values>N</omit_null_values>
<date_time_format/>
<add_to_result_filenames>N</add_to_result_filenames>
<zipped>N</zipped>
<splitevery>0</splitevery>
</file>
<fields>
<field>
<name>REST3_DATA</name>
<element>DATA</element>
<type>-</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>REST3_STATUS</name>
<element/>
<type>Integer</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<length>-1</length>
<precision>0</precision>
</field>
</fields>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
<xloc>332</xloc>
<yloc>174</yloc>
<draw>Y</draw>
</GUI>
</step>
</steps>
<order>
<hop> <from>REST Client</from><to>XML Output</to><enabled>Y</enabled> </hop>
</order>
<notepads>
</notepads>
</transformation-steps>
LOG: 日志:
2011/07/28 15:42:10 - Transformation metadata - We have 0 connections... 2011/07/28 15:42:10 - Transformation metadata - Reading 2 steps... 2011/07/28 15:42:10 - Transformation metadata - Looking at step #0 2011/07/28 15:42:10 - Transformation metadata - Looking at step #1 2011/07/28 15:42:10 - Transformation metadata - We have 1 hops... 2011/07/28 15:42:10 - Transformation metadata - Looking at hop
2011/07/28 15:42:10-转换元数据-我们有0个连接... 2011/07/28 15:42:10-转换元数据-读取2个步骤... 2011/07/28 15:42: 10-转换元数据-查看步骤#0 2011/07/28 15:42:10-转换元数据-查看步骤#1 2011/07/28 15:42:10-转换元数据-我们有1个跃点... 2011/07/28 15:42:10-转换元数据-观察跃点
0 2011/07/28 15:42:10 - Transformation metadata - nr of steps read :
0 2011/07/28 15:42:10-转换元数据-步骤nr读取:
2 2011/07/28 15:42:10 - Transformation metadata - nr of hops read : 1 2011/07/28 15:42:10 - Spoon - Transformation opened.
2 2011/07/28 15:42:10-转换元数据-啤酒花的nr读取:1 2011/07/28 15:42:10-勺子-转换已开始。 2011/07/28 15:42:10 - Spoon - Launching transformation [test]... 2011/07/28 15:42:10 - Spoon - Started the transformation execution.
2011/07/28 15:42:10-Spoon-启动转换[测试] ... 2011/07/28 15:42:10-Spoon-开始转换执行。 2011/07/28 15:42:10 - test - Dispatching started for transformation [test] 2011/07/28 15:42:10 - test - Nr of arguments detected:0 2011/07/28 15:42:10 - test - This is not a replay transformation 2011/07/28 15:42:10 - Transformation metadata - Natural sort of steps executed in {0} ms ({1} time previous steps calculated) 2011/07/28 15:42:10 - test - I found 2 different steps to launch.
2011/07/28 15:42:10-测试-开始进行转换以进行转换[测试] 2011/07/28 15:42:10-测试-检测到的参数个数为0:2011/07/28 15:42:10-测试-这不是重播转换2011/07/28 15:42:10-转换元数据-以{0}毫秒执行自然排序的步骤(计算的是先前步骤的{1}时间)2011/07/28 15:42: 10-测试-我发现有2个不同的启动步骤。 2011/07/28 15:42:10 - test - Allocating rowsets... 2011/07/28 15:42:10 - test - Allocating rowsets for step 0 --> REST Client 2011/07/28 15:42:10 - test - prevcopies = 1, nextcopies=1 2011/07/28 15:42:10 - test - Transformation allocated new rowset [REST Client.0 - XML Output.0] 2011/07/28 15:42:10 - test - Allocated 1 rowsets for step 0 --> REST Client 2011/07/28 15:42:10 - test - Allocating rowsets for step 1 --> XML Output 2011/07/28 15:42:10 - test - Allocated 1 rowsets for step 1 --> XML Output
2011/07/28 15:42:10-测试-分配行集... 2011/07/28 15:42:10-测试-分配步骤0的行集-> REST客户端2011/07/28 15:42: 10-测试-prevcopies = 1,nextcopies = 1 2011/07/28 15:42:10-测试-转换分配了新的行集[REST Client.0-XML Output.0] 2011/07/28 15:42:10-测试-为步骤0分配了1个行集-> REST客户端2011/07/28 15:42:10-测试-为步骤1分配了行集-> XML输出2011/07/28 15:42:10-测试-分配了步骤1的1行集-> XML输出
2011/07/28 15:42:10 - test - Allocating Steps & StepData... 2011/07/28 15:42:10 - test - Transformation is about to allocate step [REST Client] of type [Rest] 2011/07/28 15:42:10 - test - Step has nrcopies=1 2011/07/28 15:42:10 - REST Client.0 - distribution activated 2011/07/28 15:42:10 - REST Client.0 - Starting allocation of buffers & new threads... 2011/07/28 15:42:10 - REST Client.0 - Step info: nrinput=0 nroutput=1 2011/07/28 15:42:10 - REST Client.0 - output rel.2011/07/28 15:42:10-测试-分配步骤和StepData ... 2011/07/28 15:42:10-测试-转换即将分配类型[Rest] 2011 /的步骤[REST Client] 07/28 15:42:10-测试-步骤具有nrcopies = 1 2011/07/28 15:42:10-REST Client.0-激活的发行版2011/07/28 15:42:10-REST Client.0-正在开始分配缓冲区和新线程... 2011/07/28 15:42:10-REST Client.0-步骤信息:nrinput = 0 nroutput = 1 2011/07/28 15:42:10-REST Client.0 -输出相关。 is 1:1 2011/07/28 15:42:10 - REST Client.0 - Found output rowset [REST Client.0 - XML Output.0] 2011/07/28 15:42:10 - REST Client.0 - Finished dispatching 2011/07/28 15:42:10 - test - Transformation has allocated a new step: [REST Client].0 2011/07/28 15:42:10 - test - Transformation is about to allocate step [XML Output] of type [XMLOutput] 2011/07/28 15:42:10 - test - Step has nrcopies=1 2011/07/28 15:42:10 - XML Output.0 - distribution activated 2011/07/28 15:42:10 - XML Output.0 - Starting allocation of buffers & new threads... 2011/07/28 15:42:10 - XML Output.0 - Step info: nrinput=1 nroutput=0 2011/07/28 15:42:10 - XML Output.0 - Got previous step from [XML Output] #0 --> REST Client 2011/07/28 15:42:10 - XML Output.0 - input rel is 1:1 2011/07/28 15:42:10 - XML Output.0 - Found input rowset [REST Client.0 - XML Output.0] 2011/07/28 15:42:10 - XML Output.0 - Finished dispatching 2011/07/28 15:42:10 - test - Transformation has allocated a new step: [XML Output].0 2011/07/28 15:42:
是1:1 2011/07/28 15:42:10-REST Client.0-找到输出行集[REST Client.0-XML Output.0] 2011/07/28 15:42:10-REST Client.0-调度完成2011/07/28 15:42:10-测试-转换已分配一个新步骤:[REST Client] .0 2011/07/28 15:42:10-测试-转换将要分配步骤[XML输出]类型[XMLOutput] 2011/07/28 15:42:10-测试-步骤具有nrcopies = 1 2011/07/28 15:42:10-XML Output.0-分配已激活2011/07/28 15:42 :10-XML Output.0-开始分配缓冲区和新线程... 2011/07/28 15:42:10-XML Output.0-步骤信息:nrinput = 1 nroutput = 0 2011/07/28 15: 42:10-XML Output.0-从[XML Output]#0-> REST Client获得了上一步2011/07/28 15:42:10-XML Output.0-输入rel为1:1 2011/07 / 28 15:42:10-XML Output.0-找到输入行集[REST Client.0-XML Output.0] 2011/07/28 15:42:10-XML Output.0-完成调度2011/07/28 15 :42:10-测试-转换分配了新的步骤:[XML输出] .0 2011/07/28 15:42: 10 - test - This transformation can be replayed with replay date: 2011/07/28 15:42:10 2011/07/28 15:42:10 - test - Initialising 2 steps... 2011/07/28 15:42:10 - REST Client.0 - Running on slave server
10-测试-可以使用重播日期重播此转换:2011/07/28 15:42:10 2011/07/28 15:42:10-测试-初始化2个步骤... 2011/07/28 15:42 :10-REST Client.0-在从属服务器上运行
0/1.
0/1。 2011/07/28 15:42:10 - XML Output.0 - Running on slave server
2011/07/28 15:42:10-XML Output.0-在从属服务器上运行
0/1.
0/1。 2011/07/28 15:42:10 - XML Output.0 - Opening output stream in
2011/07/28 15:42:10-XML Output.0-在以下位置打开输出流
encoding: UTF-8 2011/07/28 15:42:10 - test - Step [REST Client.0] initialized flawlessly.
编码:UTF-8 2011/07/28 15:42:10-测试-步骤[REST Client.0]完美初始化。 2011/07/28 15:42:10 - test - Step [XML Output.0] initialized flawlessly.
2011/07/28 15:42:10-测试-步骤[XML Output.0]完美初始化。 2011/07/28 15:42:10 - test - Transformation has allocated 2 threads and 1 rowsets.
2011/07/28 15:42:10-测试-转换已分配2个线程和1个行集。 2011/07/28 15:42:10 - REST Client.0 - Starting to run... 2011/07/28 15:42:10 - REST Client.0 - Signaling 'output done' to 1 output rowsets.
2011/07/28 15:42:10-REST Client.0-开始运行... 2011/07/28 15:42:10-REST Client.0-向1个输出行集发出信号``输出完成''。 2011/07/28 15:42:10 - XML Output.0 - Starting to run... 2011/07/28 15:42:10 - REST Client.0 - Finished processing (I=0, O=0, R=0, W=0, U=0, E=0) 2011/07/28 15:42:10 - XML Output.0 - Signaling 'output done' to 0 output rowsets.
2011/07/28 15:42:10-XML Output.0-开始运行... 2011/07/28 15:42:10-REST Client.0-完成处理(I = 0,O = 0,R = 0,W = 0,U = 0,E = 0)2011/07/28 15:42:10-XML Output.0-向0个输出行集发出信号``输出完成''。 2011/07/28 15:42:10 - XML Output.0 - Finished processing (I=0, O=0, R=0, W=0, U=0, E=0) 2011/07/28 15:42:10 - Spoon - The transformation has finished!!
2011/07/28 15:42:10-XML Output.0-完成处理(I = 0,O = 0,R = 0,W = 0,U = 0,E = 0)2011/07/28 15: 42:10-Spoon-转换完成了!!
This is an old question but I thought I would make a suggestion if anyone stumbles onto this page. 这是一个古老的问题,但我想如果有人偶然发现此页面,我会提出建议。
Make sure you have a generate row step as the first step because you can't start a transformation with a REST Client step as it is a lookup step and not an input step. 确保您将生成行步骤作为第一步,因为您无法使用REST Client步骤启动转换,因为它是查找步骤而不是输入步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.