Create DataLens Spark application
datalens_sparkapplications_createCreates a Spark application on a DataLens cluster and returns the operation that tracks it. Specify a JAR, PySpark, or Spark Connect application with its cluster, name, and catalogs.
Instructions
Make a Spark application on a cluster and return the operation that makes it.
Experimental in the DataLens API, written from its document and never called: not measured. Ask the person before calling.
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": {
"body": "<body>"
},
"name": "datalens_sparkapplications_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The application to make: ``clusterId``, a ``name``, the ``catalogs`` to attach, and exactly one of ``sparkApplication`` (a JAR), ``pysparkApplication`` (a Python file) or ``sparkConnectApplication``. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). |