Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: kettle 4.2 , execute remote transformation using java api

  1. #1
    Join Date
    Oct 2011
    Posts
    14

    Default kettle 4.2 , execute remote transformation using java api

    Hello, I have some problems :
    1) In previous version when I want to get transformation status I used slaveServer.getTransStatus(etlFile.getFileName().split("\\.")[0]).getStatusDescription(), but now getTransStatus wants two new parameters carteObjectId and startLogLineNr. What is this carteObjectId parameter, why I need to pass it and where to find its value.
    2) I use this way to execute transformation

    KettleEnvironment.init(false);
    EnvUtil.environmentInit();
    TransMeta transMeta = new TransMeta(filename);

    SlaveServer ss = new SlaveServer("sample", "localhost", "8081", "cluster", "cluster");
    TransExecutionConfiguration transConfig = new TransExecutionConfiguration();
    .....
    transConfig.setVariables(params);
    transConfig.setRemoteServer(ss);
    ss.sendXML(transMeta.getXML(), AddTransServlet.CONTEXT_PATH + "/?xml=Y");
    Trans.sendToSlaveServer(transMeta, transConfig, null);


    Is there any more intelligent (new) way to execute transformation?

    Thanks in advance.

  2. #2
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    You get back a Carte object ID when you execute a transformation (or job) on Carte.
    It's a unique ID allowing you to differentiate between different (possibly parallel) runs of the same transformation on a server.

  3. #3
    Join Date
    Apr 2016
    Posts
    21

    Default

    Is there any way to get the whole list of the Carte object IDs of transformations run/running on a remote server ?
    Many thanks.

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.