Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Experts,
I am new to talend, i have a requirement were the ETL should capture the number of rows processed by each stage and insert into table for further data processing report.
i have done something but couldn't move forward. please advise.
Note: i know that there are log components we can use but it seems too complex and i dont see what i want.
following things i have done so far.
tJava_3 -> i am assigning the extraction count to global variable "Extraction"
globalMap.put("ExtractionCount", ((Integer)globalMap.get("tFileRowCount_1_COUNT")));
tJava_1 ->
globalMap.put("AggregatedCount", ((Integer)globalMap.get("tJavaRow_2_NB_LINE")));
tJava_2 ->
globalMap.put("Inserted", ((Integer)globalMap.get("tDBOutput_1_NB_LINE_INSERTED")));
An easier way of doing this is to do it after the first subjob has finished. Simply connect a tJava to your tFileInputDelimited using an OnSubJobOK link. Then use the same code you have used in each of your tJava components in the new tJava. One change, you can get the tFileInputDelimited component's row count using this code....
((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE"))
An easier way of doing this is to do it after the first subjob has finished. Simply connect a tJava to your tFileInputDelimited using an OnSubJobOK link. Then use the same code you have used in each of your tJava components in the new tJava. One change, you can get the tFileInputDelimited component's row count using this code....
((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE"))
thank you rhall
thank you Shong