The spark-submit command submits a spark job to the cluster

JSON Input Data Format
{
    "id": string,
    "filename": string,
    "args": string,
    "appargs": string
}
id * Specifies the ID of the cluster.
filename * Specifies the path and file name of the script or jar application on the cluster. The path must begin with a /.
args Specifies the arguments for the spark-submit job.
appargs Specifies the arguments for the script of jar application.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "...output of the command.."
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}