Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Help implementing MergeJoin

  1. #1
    Join Date
    Apr 2012
    Posts
    2

    Default Help implementing MergeJoin

    Hi Guys,

    I am trying to implement MergeJoin using API. I am having trouble getting it to work, my main issue is:

    ERROR 11-04 16:40:03,161 - mergeJoin - Exactly two input streams must be supplied

    Here is the portion of code that relates to MergeJoin:

    MergeJoinMeta mergeJoinMeta = new MergeJoinMeta();
    mergeJoinMeta.setDefault();
    mergeJoinMeta.setJoinType("INNER");
    mergeJoinMeta.setKeyFields1(new String[] {"id"});
    mergeJoinMeta.setKeyFields2(new String[] {"id"});

    MergeJoinMeta used to have two methods for setting step1 and step2, namely: setStepMeta1() and setStepMeta2(). In the version that I downloaded (4.2.0) there are no such methods. I am wondering if the functionality was removed, or the usage for this was changed.

    Please, help!

    Thanks

  2. #2
    Join Date
    Apr 2012
    Posts
    2

    Default

    I got it working.

  3. #3

    Default

    And how did you get it working? I am having the same problem...

  4. #4
    Join Date
    Sep 2013
    Posts
    1

    Default

    Same here...
    Can anyone provide some input on this matter?

    Thanks

  5. #5
    Join Date
    Mar 2014
    Posts
    3

    Default

    Hi,

    I am also facing same issue... Can any one please help me out here... where do we set names for 'step1' and 'step2'? In Spoon tool if we don't provide input step names execution fails with
    2014/04/09 16:27:31 - Merge Join.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Exactly two input streams must be supplied
    2014/04/09 16:27:31 - Merge Join.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Error initializing step [Merge Join]

    In Transformation with MergeJoin that is created using Pentaho APIs (.ktr ) file I dont see step name created.
    I need this very badly for my business use case... Please respond with a solution.

    I am currently useing Kettle 4.4 version.

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.