Submit Spark Application
submit_spark_applicationSubmits a Spark application to a specified engine for execution, with options for JAR, Python, or R files, arguments, configuration, and environment variables.
Instructions
Submit a Spark application for execution on a Spark engine.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"engine_id": "<engine_id>",
"application": "<application>"
},
"name": "submit_spark_application"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables | |
| conf | No | Spark configuration properties (e.g., {"spark.executor.memory": "2g"}) | |
| name | No | Application name (will be added to conf as spark.app.name) | |
| type | No | Engine type - "spark" or "gluten" | |
| volumes | No | Volume mounts (watsonx.data software only). List of dicts with: - name: volume name - mount_path: path in spark cluster (e.g., "/mount/path") - source_sub_path: path in volume to mount (e.g., "/source/path") - read_only: boolean flag | |
| arguments | No | Application arguments array | |
| engine_id | Yes | Spark engine identifier | |
| application | Yes | Application file path (JAR, Python, R file) | |
| context_type | No | Context type - "project", "git_project", or "space" | |
| job_endpoint | No | External job endpoint | |
| service_instance_id | No | Service instance ID - "iae" or "emr" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||