Data & Intelligence

How to Run Talend job from Command Line

Shutterstock 403856026

Introduction:

We mostly use Talend studio, TAC or TMC to run a Talend job once it is ready. But for all these we need to install Talend Studio and need rights to access TAC and TMC. What if we want to run a talend job outside the studio? We can do that using command prompt.

We can bundle the job so that we can execute our talend job irrespective of whether Talend studio is installed on machine or not we can execute them independently. All we need is a zip file of that job and JDK installed on our machine. Also, if we are making use of any context variables, we can also override the values of those variables and can execute the job dynamically.

Procedure: 

Steps 1 to 3 are about how to make a zip file of a job and steps 4 to 7 to run the job using Command Line

  1. Right click on the job which you want to run outside the studio and then click on Build Job

Picture1

 

  1. After Clicking Build job a Pop-Up box will open in that we have to browse/specify the path location in ‘’To archive File’’ box to save the job
    Select Build Type as Standalone job
Data Intelligence - The Future of Big Data
The Future of Big Data

With some guidance, you can craft a data platform that is right for your organization’s needs and gets the most return from your data capital.

Get the Guide

Picture2

  1. Later Finish the Pop Up 

    Picture3

  2. Go to the path location which we specified while building the job there we can see the zip filePicture4
  3. Next, we need to extract the file in the same or different folder.We can see .bat, .sh files, .bat is for Windows and .sh for Linux. We are using Windows so we would use .bat file

Picture5

  1. Open Command prompt and drag the .bat file from that path and drop it into command prompt
    Picture6
  2. Press Enter

We can see the result in command line

Picture7

 

Conclusion:

So, that’s all about how we can run a Talend job with the help of command line. We discussed all the steps required to perform this task. If we are someone who doesn’t know Talend but need to run a Talend job, then we can use that zip file. Now, we know how to run a job outside Talend Studio.

Thanks for reading!

Your opinion matters
Please write your valuable feedback

Thoughts on “How to Run Talend job from Command Line”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Nikita Tiwari

Nikita Tiwari is an associate technical consultant based in India. Nikita is interested in Talend.

More from this Author

Subscribe to the Weekly Blog Digest:

Sign Up
Follow Us
TwitterLinkedinFacebookYoutubeInstagram