> [!IMPORTANT]
> The Managed Service for Apache Spark templates are open source, not an official or supported Google product. The template code is located in the [GoogleCloudPlatform/templates](https://github.com/GoogleCloudPlatform/dataproc-templates) GitHub repository.

Use Managed Service for Apache Spark templates to quickly set up and
run common Spark batch workloads without writing code.

## Managed Service for Apache Spark templates

The following Managed Service for Apache Spark templates are Java templates. See the GitHub
[GoogleCloudPlatform/templates/python](https://github.com/GoogleCloudPlatform/dataproc-templates/tree/main/python)
repository for Python templates and the [GoogleCloudPlatform/templates/notebook](https://github.com/GoogleCloudPlatform/dataproc-templates/tree/main/notebooks)
repository for Python templates in Jupyter notebooks.

You can run following Managed Service for Apache Spark templates using the gcloud CLI
or API:

- [Cloud Spanner to Cloud Storage](https://docs.cloud.google.com/managed-spark/docs/templates/spanner-to-storage.md.txt)
- [Cloud Storage to BigQuery](https://docs.cloud.google.com/managed-spark/docs/templates/storage-to-bigquery.md.txt)
- [Cloud Storage to Cloud Spanner](https://docs.cloud.google.com/managed-spark/docs/templates/storage-to-spanner.md.txt)
- [Cloud Storage to Cloud Storage](https://docs.cloud.google.com/managed-spark/docs/templates/storage-to-storage.md.txt)
- [Cloud Storage to JDBC](https://docs.cloud.google.com/managed-spark/docs/templates/storage-to-jdbc.md.txt)
- [Hive to BigQuery](https://docs.cloud.google.com/managed-spark/docs/templates/hive-to-bigquery.md.txt)
- [Hive to Cloud Storage](https://docs.cloud.google.com/managed-spark/docs/templates/hive-to-storage.md.txt)
- [JDBC to BigQuery](https://docs.cloud.google.com/managed-spark/docs/templates/jdbc-to-bigquery.md.txt)
- [JDBC to Cloud Spanner](https://docs.cloud.google.com/managed-spark/docs/templates/jdbc-to-spanner.md.txt)
- [JDBC to Cloud Storage](https://docs.cloud.google.com/managed-spark/docs/templates/jdbc-to-storage.md.txt)
- [JDBC to JDBC](https://docs.cloud.google.com/managed-spark/docs/templates/jdbc-to-jdbc.md.txt)
- [Pub/Sub to Cloud Storage](https://docs.cloud.google.com/managed-spark/docs/templates/pubsub-to-storage.md.txt)

> [!NOTE]
> **Note:** Additional Managed Service for Apache Spark templates are available in the GitHub [GoogleCloudPlatform/templates](https://github.com/GoogleCloudPlatform/dataproc-templates) repository.