Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all - ,
im using tJava to count rows from the hive connection, and to create and insert into table, is there any ways to do it
Most components expose the NB_LINE variable that shows that total number of rows that flowed through that component during the execution of your job. Could you use that to get your count?
int count = ((Integer)globalMap.get("tHiveRow_1_NB_LINE")).intValue
Hi kkimpoy,
Instead of tJava component, you can also use tflowmeter component for counting the number of rows processed.
Place tflowmeter component in between two components where you feel you need to know the count, Then take tflowmetercatcher component from the pallette and connect it to tlogrow and you should be able to see the count in the output.
Don't forget to give kudos
Thanks & Regards,
Shafi Shaik