Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Platform: Kettle-Component not documented

  1. #1
    Join Date
    Nov 1999
    Posts
    459

    Default Platform: Kettle-Component not documented

    There is no documentation for the Kettle-Component in
    Pentaho_Creating_Solutions_1.2.RC1.pdf

    In the Kettle-Component: How can I add input parameters (the field did not "react" to anything I tried) and how can I access them within Kettle. Are these command line parameters or Kettle variables?

    Thanks,
    Jens

  2. #2
    Join Date
    Nov 2005
    Posts
    29

    Default Re:Platform: Kettle-Component not documented

    There are a couple of things going on here. First of all, you are correct that there is no documentation. We will get that updated right away and have it available with our next release.

    Additionally there is a bug in the way the design studio creates the action sequence xml for the kettle component. Currently, the Kettle component requires a 'parameterx' component definition element for each input parameter being passed to the kettle engine. Below is a brief action sequence xml example for the kettle component. Note the example is not complete. In the example we want to pass "input1" and "input2" to the kettle engine. Therefore we must add "parameter1" and "parameter2" which reference the two inputs.

    The need to create the "parameterx" component definition elements will soon be depricated. Unfortunately this was depricated prematurely in the design studio. So for now, if your using the design studio, after you create the Kettle Transformation step and added your inputs, you'll have to manually edit the XML to add a "parameterx" element in the component definition for each input you're trying to pass to the Kettle engine.

    <action-sequence>

    .
    .
    .

    <resources>
    <transformation-file>
    <solution-file>
    <location>kettleTransformation.ktr</location>
    <mime-type>text/plain</mime-type>
    </solution-file>
    </transformation-file>
    </resources>

    <action-definition>
    <component-name>KettleComponent</component-name>
    <action-type>Kettle Transformation</action-type>
    <action-inputs>
    <input1 type="string"/>
    <input2 type="string"/>
    </action-inputs>
    <action-resources>
    <transformation-file type="resource"/>
    </action-resources>
    <action-outputs>
    <transformation-output type="result-set" mapping="myoutput"/>
    </action-outputs>
    <component-definition>
    <importstep>step1</importstep>
    <parameter1>input1</parameter1>
    <parameter2>input2</parameter2>
    </component-definition>
    </action-definition>

    <action-sequence>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.