Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

printing processed records when we run talend job as executable jar file

Highlighted
Five Stars

printing processed records when we run talend job as executable jar file

I want to run talend job as executable jar file..After  running that jar file  i want to print no of records processed in command prompt..how to achieve that ?

Highlighted
Moderator

Re: printing processed records when we run talend job as executable jar file

@lavan524 ,in the job you can print the processed records using print command in java and those all information you can log to log file and there you can check the processed records.

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Highlighted
Five Stars

Re: printing processed records when we run talend job as executable jar file

may i know how to log the info after job completion...

Highlighted
Moderator

Re: printing processed records when we run talend job as executable jar file

Highlighted
Five Stars

Re: printing processed records when we run talend job as executable jar file

i have tried this but i haven't get any log file in destination

 

talend.PNG

Highlighted
Employee

Re: printing processed records when we run talend job as executable jar file

Hi,

 

   Coming to your original query, you can create Talend commands as standalone executable JAR files by below method.

 

https://help.talend.com/reader/v1kB1bHrWOxIQmz31voF5A/Nanx_kJqdrMx6tPW3hfyrQ

 

   Also when you can print the details from Talend job itself, why you are trying to print it from command prompt?

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Highlighted
Moderator

Re: printing processed records when we run talend job as executable jar file

@lavan524 ,on subjob ok you can add tjava componet and you can specify global variable to print

 

system.out.println(((Integer)globalMap.get("tSalesforceOutput_1_NB_SUCCESS")))

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog