Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Saving Transformation using PDI 3.2.2 API

  1. #1

    Default Saving Transformation using PDI 3.2.2 API

    I am trying to save a Transformatin/Job to Kettle repository using.
    I know its because of some environment issue where its does not getting the necessary variables for loading the plugins.
    Quick Help is appreciated.
    -Thanks
    Yogesh

    TransMeta tmetaKTR = new TransMeta();
    Document document = XMLHandler.loadXMLFile(
    "D:\\test1.ktr");
    tmetaKTR.setRepository(ngieRepos);
    Node root = document.getDocumentElement();

    tmetaKTR.loadXML(root,tmetaKTR.getRepository(),
    true, new Variables(),null);
    tmetaKTR.saveRep(ngieRepos);


    Error reading object from XML file

    Unable to load step info from XML step
    nodeorg.pentaho.di.core.exception.KettleStepLoaderException:
    Unable to load class for step/plugin with id [TableInput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.


    Unable to load class for step/plugin with id [TableInput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.


  2. #2

    Default Found the answer.....

    I was missing to do a stepLoader.read() and this resolved my issue.

  3. #3

    Default stepLoader.read() gives problem for custom plugin

    Hi Matt,
    Currenlty we have developed few custom plugins.
    We are using below PDI api to publish transformation having custom plugin as one of its step.
    Initially we got an error syaing CUSTOM plugin not found in steps.xml while doing steploader.read().

    Then we have added the sample plugins entry to the kettle-core steps .xml and the transformation got saved to repository using PDI api.

    But now the issue is when we try to open the Spoon its simply terminates because of the new entries added to this steps.xml file.

    So if we remove these entries of custom plugin from Steps.cml spoon opens without any issues displaying custom plugins.

    So my question how do we publish transformation without adding cistom plugins to step.xml.


    -Thanks
    Yogesh

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.