Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ATabatadze1671641742
Contributor
Contributor

How to start Execution Plan from bash script

Hello,

We want to start execution plan (talend) after db restore and want to find way how to start it from bash script

1 Reply
Anonymous
Not applicable

Hello,

You are able to create an Execution Plan with MetaServletCaller script.

 

This can be achieved with "importExecutionPlan" command of MetaServletCaller.

Here is the syntax for creating a very basic Exec Plan with just one task "Task1" (which should already exist in TAC) :

MetaServletCaller --tac-url=http://localhost:8080/org.talend.administrator --json-params={"actionName":"importExecutionPlan","authUser":"test@company.com","authPass":"test","result":{"ExecutionPlan":[{"label":"PlanB","desc":"This is my Plan","execPlanTimeOut":60,"planParts":{"planId":"PlanB","planPartTaskId":"Task1"}}]}}

As you can see from above, most the Exec Plan config is in "result" attribute.

To get the full syntax of "result" attribute if you want to create a more complex plan, then what you can do is start from an existing plan, and call MetaServletCaller's "listExecutionPlans". This will return "result" which you can edit/adjust to use when calling "importExecutionPlan"

Hope it will be helpful for you.

Best regards

Sabrina