Print out how many rows passed through component (probably tJavaRow)

Five Stars

Print out how many rows passed through component (probably tJavaRow)

Hello,

 

Because I use tRunJob I want to see progress of my child job. So I thought adding some java code into some tJavaRow with something like System.out.println, ....

 

Can someone help me here?

 

Thank you.

Six Stars

Re: Print out how many rows passed through component (probably tJavaRow)

hi for example if you are using tmysqlinput or any component u can find number of line option in global variables by that u can print how many rows are passing

eg :

System.out.println(((Integer)globalMap.get("tMysqlInput_1_NB_LINE")));

 

find the attachment.

Six Stars

Re: Print out how many rows passed through component (probably tJavaRow)

is this solution correct ?

Five Stars

Re: Print out how many rows passed through component (probably tJavaRow)

Not exactly, it just show me whole number of rows it reads:

2018-03-06 13_10_20-Talend Open Studio for Big Data (6.4.1.20170623_1246) _ MPRF_-_FACT_CH (Connecti.png

 

But I want to show for example one line every 1000 rows it reads.

Moderator

Re: Print out how many rows passed through component (probably tJavaRow)

Hello,
The tFlowMeterCatcher component catches the processing volumetric from the tFlowMeter component and passes them on to the output component.

Could you please have a look at this component reference about:TalendHelpCenter:tFlowMeterCatcher.

Feel free to let us know if it is OK with you.

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.