What problem does it solve? Writing correct Spark code for Google Cloud Dataproc requires knowing the right connectors, catalog configurations, IAM roles, and submission commands. This Skill guides the generation, verification, and execution of Spark ETL and ML workloads on Dataproc Clusters and Serverless, preventing common mistakes like schema mismatches, missing imports, and misconfigured BigLake Iceberg catalogs. ## Core Features & Use Cases - Spark Code Generation: Produces Python notebooks (.ipynb) or PySpark scripts following a strict task execution workflow with schema discovery before coding. - Data Source Integration: Reads and writes BigQuery tables, BigLake Iceberg catalogs (GCS and S3 storage), Cloud Spanner, and GCS files (CSV, Parquet, JSON) with verified connector configurations. - Cluster & Job Management: Lists clusters, jobs, batches, and sessions via gcloud or MCP tools, and submits Serverless batches with correct properties for Iceberg, Spanner, and XGBoost. - Use Case: A data engineer needs to build an ETL pipeline that reads a CSV from GCS, enriches it with a BigQuery reference table, and writes the result to a BigLake Iceberg table. The Skill generates the notebook, verifies schemas, compiles the code, and provides the correct batch submission command. ## Quick Start Ask the assistant to write a Spark notebook that reads a BigQuery table and writes the results to a BigLake Iceberg catalog on Dataproc Serverless.