Search code examples
javatalendbigdata

Connect to Talend Big Data Server (TAC) from external Java program


Requirement:

  • Connect to Talend server (TAC) via JDBC/HTTPCLIENT/SOME OTHER SERVICE.
  • Read Jobs defined in Talend.
  • Extract Job workflow info: Hive job, parallelize operation, etc.
  • List all the details of the workflow

Solution

  • Talend Server if you mean as TAC then you can send MetaServlet POST requests from talend execution server to send job to TAC and they will show up.

    This can be a regular POST request to TAC metaservlet. I am giving an example of a curl request I made.

    curl -H "Content-Type: application/json" -X POST -d '"{"actionName":"runTask","authPass":xxxx,"authUser":xxxx,"mode":"can be sychronous or async","taskId":xxxx}"' tacURL
    

    Go through the below link and see if that helps.

    https://help.talend.com/display/KB/Talend+Administration+Center+MetaServlet+API+documentation