...
Parameter | Description |
---|---|
| Name of the application being called |
| One of |
| Name of the MapReduce, custom service, Spark, worker, or workflow being started |
| The status code from starting an individual JSON object |
| If an error, a description of why the program could not be started (for example, the specified program was not found) |
runId | A UUID that uniquely identifies a run with CDAP |
For example:
Code Block |
---|
POST /v3/namespaces/default/start [ {"appId": "App1", "programType": "Service", "programId": "Service1"}, {"appId": "App1", "programType": "Spark", "programId": "Spark2"}, {"appId": "App2", "programType": "Spark", "programId": "Spark1", "runtimeargs": { "arg1":"val1" }} ]' |
...
Code Block |
---|
[ {"appId": "App1", "runId":"5f55fa1a-5700-11ed-a5d2-76b189bf0786", "programType": "Service", "programId": "Service1", "statusCode": 200}, {"appId": "App1", "runId":"5f55fa1a-5700-11ed-a5d2-76b189bf0786", "programType": "Spark", "programId": "Spark2", "statusCode": 200}, {"appId": "App2", "runId":"5f55fa1a-5700-11ed-a5d2-76b189bf0786", "programType":"Spark", "programId":"Spark1", "statusCode":404, "error": "App: App2 not found"} ] |
...