Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Vishu1
Employee
Employee

Create execution plan using Metaservlet API

Hi,

I want to create execution plan using Talend Metaservlet API.

I have cheched the below link for this.

https://help.talend.com/r/en-US/7.3/administration-center-metaservlet-api/metaservlet-commands

But it seems there is no API endpoint to create an execution plan.

Need help on this.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi,

 

Thank you for writing.

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".

 

Thanks,

 

View solution in original post

1 Reply
Anonymous
Not applicable

Hi,

 

Thank you for writing.

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".

 

Thanks,