How to export and import an execution plan from one TAC to another

Talend Version (Required)       6.4.1

Summary

Exporting and importing of an execution plan.
Additional Versions  
Product (Required) Talend Data Integration
Component (Required) Talend Administrator Center
Problem Description Exporting and Importing of execution plans from one TAC to another is not a feature that is available directly. This functionality can be achieved using the MetaServlet API.
Problem root cause  
Solution or Workaround

The Metaservlet API can be used for exporting and importing of execution plans.

There are two phases:

  1. Exporting execution plans:

    To export the execution plan, use the following command and JSON arguments, which provide you the list of execution plans available within TAC.

    Syntax:

    MetaServletCaller.bat --tac-url=TAC_URL --json-params="{"actionName":"listExecutionPlans","authPass":"TAC user password","authUser":"TAC_USERNAME"}

    Example:

    MetaServletCaller.bat --tac-url=http://localhost:8080/org.talend.administrator --json-params="{"actionName":"listExecutionPlans","authPass":"admin","authUser":"admin@company.com"

     

  2. Importing execution plans:

    To import the execution plan, use the following command and JSON arguments.

    Syntax:

    MetaServletCaller.bat --tac-url=TAC_URL --json-params="{"actionName":"listExecutionPlans","authPass":"TAC user password","authUser":"TAC_USERNAME"},"result":Output of listExecutionPlans command

    Example:

    MetaServletCaller.bat --tac-url=http://localhost:8080/org.talend.administrator --json-params="{"actionName":"importExecutionPlan","authPass":"admin","authUser":"user@talend.com","result":{"executionTime":{"millis":9,"seconds":0},"result":{"ExecutionPlan":[{"errorStatus":"OK","execPlanTimeOut":0,"idQuartzJob":11,"label":"ex1","planId":11,"planParts":{"endDate":"2017-09-04 13:43:18.0","partJobPrms":[],"partRequestId":"1504512788672_FBZIi","partStatus":"NONE","partType":"NONE","planId":"ex1","planPartId":6,"planPartTaskId":"24_aug_execplan","startDate":"2017-09-04 13:43:09.0","useParalle":false},"planPrms":[],"requestId":"1504512788533_pKrD7","status":"STOPPED"}]},"returnCode":0}
JIRA ticket number  
Version history
Revision #:
3 of 3
Last update:
‎11-06-2017 04:13 AM
Updated by:
 
Contributors