User defined Java class in PDI/Kettle

588 views
Skip to first unread message

Dan

unread,
Sep 24, 2014, 9:52:59 AM9/24/14
to pentaho-...@googlegroups.com
Hi,

In PDI if you have a user defined java class, it doesn't do the interval logging which other steps do, i.e. the stuff which looks like this:

2014/09/24 14:50:27 - [Run AIF full-process].[full-process].[Run Engines and Rules].[engine_harness_2].[Algorithm S1].[algorithm-offerengine3].Add constants 2.0 - LineNr : 17000000

Is that a bug/oversight? Or is it something the UDJC programmer has to implement?

I'd have assumed that all steps would do this?

Thanks,
Dan

Jens Bleuel

unread,
Sep 24, 2014, 10:10:57 AM9/24/14
to pentaho-...@googlegroups.com

Dan,

 

you need to implement it L

 

Thanks,

Jens

--
You received this message because you are subscribed to the Google Groups "Pentaho Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pentaho-commun...@googlegroups.com.
To post to this group, send email to pentaho-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pentaho-community/CAGujiv1mgJMN_5jK_EZHTj1NsbhruaEnys0KEZxFXSWEYksSjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Dan

unread,
Sep 24, 2014, 10:13:13 AM9/24/14
to pentaho-...@googlegroups.com
OK. So 2 obvious questions:

1. Where does it say I have to do that?  Shall I update the wiki doco?
2. How do I do it?  I'm being lazy, i guess it's a copy and paste from any other step...?

Is there not a way the step itself could do it for me?

Dan



Matt Casters

unread,
Sep 24, 2014, 10:17:08 AM9/24/14
to pentaho-...@googlegroups.com
Depends on what you want to count on: written, output, updated, deleted, rejected, ...
This is how the steps do it, output count as an example:

    putRow( data.outputMeta, r );

    if ( checkFeedback( getLinesOutput() ) ) {
      if ( log.isBasic() ) {
        logBasic( "Have I got rows for you! " + getLinesOutput() );
      }
    }



HTH,
Matt


--
Matt Casters <mcas...@pentaho.org>
Chief Data Integration, Kettle founder, Author of Pentaho Kettle Solutions (Wiley)
Fonteinstraat 70 - 9400 OKEGEM - Belgium - Cell : +32 486 97 29 37
Pentaho  -  Powerful Analytics Made Easy

 Pentaho World 2014

Dan

unread,
Sep 24, 2014, 10:32:58 AM9/24/14
to pentaho-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages