gcp-spark

Generates and executes Spark code on Dataproc clusters and Serverless with BigQuery, Iceberg, and Spanner integration.

1|Updated Aug 30, 2026
One-click install
npx skills add https://github.com/FeexSystems/3WM-SONIK-LABS --skill gcp-spark-feexsystems
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gcp-spark
Source: https://github.com/FeexSystems/3WM-SONIK-LABS/tree/main/.gemini/skills/gcp-spark
Command: npx skills add https://github.com/FeexSystems/3WM-SONIK-LABS --skill gcp-spark-feexsystems

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing correct, production-ready Spark code for Google Cloud Dataproc requires deep knowledge of connector configurations, catalog setups, and runtime constraints. This Skill guides the generation, validation, and execution of PySpark notebooks and scripts while preventing common mistakes like schema mismatches, missing imports, and misconfigured Iceberg catalogs. ## Core Features & Use Cases - Spark Code Generation: Produces Python notebooks (.ipynb) for ETL pipelines that read and write BigQuery, BigLake Iceberg, Spanner, GCS, Cloud SQL, and Pub/Sub data. - Dataproc Resource Management: Lists clusters, jobs, serverless batches, and interactive sessions using gcloud or MCP tools, and submits PySpark batch jobs with correct connector dependencies. - ML Workload Guidance: Applies verified patterns for XGBoost and native Spark ML training, including known restrictions like disabled dynamic allocation and prohibited objective parameters. - Use Case: A data engineer needs to build an ETL pipeline reading from a BigLake Iceberg table and writing partitioned results to BigQuery. The Skill inspects schemas, generates a validated notebook, compiles it, and submits it as a Dataproc Serverless batch. ## Quick Start Ask the assistant to write a Spark notebook that reads a BigQuery table, transforms the data, and writes it to a BigLake Iceberg catalog on Dataproc Serverless.

Frequently Asked Questions about gcp-spark

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a PySpark job on Dataproc Serverless?▼

Submit a PySpark script as a serverless batch using gcloud dataproc batches submit pyspark with the project, region, version 2.3, and a --deps-bucket GCS path for dependencies. Expect initial execution to take 10-15 minutes, which is normal behavior.

How to read and write BigLake Iceberg tables with Spark?▼

Configure the Spark session with the Iceberg SparkCatalog pointing to the BigLake REST endpoint, set the current catalog with spark.catalog.setCurrentCatalog, then read with spark.read.format("iceberg") and write using the DataFrameWriterV2 writeTo API with modes like append or createOrReplace.

Does LightGBM work on Dataproc Serverless?▼

LightGBM has dependency conflicts on Dataproc Serverless because the SynapseML wrapper conflicts with Dataproc's internal libraries. Use XGBoost, native Spark ML like GBTClassifier, or train on a dedicated Dataproc cluster instead.

Why does SparkXGBClassifier fail when setting the objective parameter?▼

SparkXGBClassifier does not allow a custom objective parameter because the objective is automatically inferred from the classifier type. Setting it raises a ValueError; omit the objective and also disable dynamic allocation for XGBoost workloads.

When should I not use Spark on Dataproc?▼

Avoid Spark for generic Python scripts that do not use Spark APIs and for simple SQL queries that can run directly in BigQuery. Spark on Dataproc is intended for distributed ETL, ML training, and large-scale data processing.