Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter

Description

appId

Name of the application being called

programType

One of mapreduceservicesparkworker, or workflow

programId

Name of the MapReducecustom serviceSparkworker, or workflow being started

statusCode

The status code from starting an individual JSON object

error

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"}
]

...