← Technology, Science & Infrastructure ▣ Distilled locally

What’s new in Managed Service for Apache Spark 4.0

By Santosh Chandrachood
November 20, 2026  ·  Google Cloud Blog ↗

As organizations move from reactive analytics to proactive systems of action powered by autonomous AI agents, data platforms face a new set of demands. Moving from human scale to agent scale changes both how data pipelines run and how they are built: Teams and AI agents now use Model Context Protocol (MCP) tools and agentic troubleshooting to build, submit, and diagnose Apache Spark pipelines while preparing multimodal datasets, performing feature engineering, and acting on live business signals around the clock. Over the past year, customer use of Managed Service for Apache Spark in serverless deployments has nearly doubled, with millions of jobs running each month as enterprises build on Google’s Agentic Data Cloud.

In the Agentic Data Cloud, Apache Spark doesn't operate in isolation. Managed Service for Apache Spark runs on Google Cloud's borderless lakehouse, so Apache Spark and BigQuery can read and write the same tables with high performance. Through Knowledge Catalog, both engines share centralized governance, consistent policies, detailed lineage, and semantic discovery for AI agents. 

Today, we are announcing the general availability of Managed Service for Apache Spark 4.0, debuting a next-generation runtime foundation for serverless and managed cluster deployments. Engineered to power both modern enterprise data pipelines and fast-growing agentic workloads, Managed Service for Apache Spark 4.0 introduces:

A new 4.0 runtime with Apache Spark 4.2

This new runtime packages Apache Spark 4.2 (including Spark Declarative Pipelines and Real-Time Mode), Java 25, Scala 2.13, Apache Iceberg 1.12, Delta Lake 4.4, and Python 3.13 with Pixi for faster dependency management.

Managed Spark serverless and cluster workloads now run on the same modern stack whether written by a data engineer or generated by data engineering and data science skills in Gemini, Claude, and other large language models (LLMs). Teams can standardize on one set of component versions and move PySpark, Scala, and Spark SQL workloads between serverless and managed clusters.

A code-first console with agentic troubleshooting

Data teams should spend their time writing Spark logic rather than configuring infrastructure, hunting for the right job, or digging through driver and executor logs when something fails. Version 4.0 ships alongside a redesigned, code-first Google Cloud console built to take that operational work off their plate.

The refreshed console streamlines every stage of the Apache Spark lifecycle:

Image 1

Image 1: Gemini Cloud Assist investigates a failed Apache Spark job, forms a hypothesis, and points to the likely root cause without leaving the job page.

Image 2

Image 2: One Jobs page for every Apache Spark workload across serverless and managed clusters, with tier and runtime version at a glance.

Build and run Apache Spark from your IDE with the Data Agent Kit

Many data engineers and data scientists would rather never leave their editor. With the Data Agent Kit, they can build and run Apache Spark workloads from VS Code, Antigravity, Claude Code, and other agentic IDEs. Setup takes a few clicks: pick Apache Spark and the other services you use, and the kit configures Model Context Protocol (MCP) servers, agent skills, and API access for each one. From there, AI agents can generate, tune, and test Apache Spark pipelines on Managed Service for Apache Spark 4.0 without leaving the IDE.

Image 3

Image 3: In VS Code, the Data Agent Kit sets up MCP servers, skills, and API access for Apache Spark and other services.

Faster startups and Lightning Engine acceleration

As practitioners and AI agents trigger short-running, ephemeral jobs on demand to prepare data, perform feature engineering, and answer ad-hoc queries, low startup latency and predictable price-performance are essential to avoiding a cost spiral. In Managed Service for Apache Spark 4.0, our performance-optimized serverless experience removes manual infrastructure tuning through three changes:

"We were facing not only processing challenges, we were facing management overhead across thousands of servers in our ecosystem, so we migrated to serverless Managed Service for Apache Spark. We moved from managing infrastructure to a no-ops infrastructure. Not only did it help us overcome maintenance and cluster management challenges, it helped us optimize our costs at scale to meet our business SLAs. Apache Spark is no longer just compute for us; it is a strategic business accelerator."
—Saurabh Kumar, Senior Director of Data Engineering, Lowe's.

Advanced capacity management and obtainability

When autonomous agents and production pipelines run around the clock, tying a workload to a single machine shape or zone can stall downstream decisions when regional demand spikes. Without dedicated reservations, cloud service providers may not always have available capacity during peak demand. We are introducing infrastructure fungibility for serverless deployments to improve resource availability for all customers:

Lakehouse runtime catalog attachment by default

A borderless lakehouse breaks down walled gardens by connecting operational, analytical, and cross-cloud data in open formats without moving it. In Managed Service for Apache Spark 4.0, Apache Iceberg ships directly in the runtime image, and every workload automatically has access to the serverless Lakehouse runtime catalog. Teams no longer have to configure a lakehouse metastore with Apache Spark or complete prerequisites such as setting up Google Cloud Storage (GCS) directories beforehand, so they can focus straight on writing business logic. Version 4.0 also eliminates the need for GCS staging buckets and uses end-user credentials by default.

Through the Lakehouse runtime catalog, Managed Service for Apache Spark, BigQuery, and AlloyDB can directly read and write the same Apache Iceberg tables on GCS without ETL pipelines or data copies. Everything registered in the Lakehouse runtime catalog automatically surfaces in Knowledge Catalog, which enriches metadata and business context so AI agents and Gemini can query and reason over tables curated with Apache Spark with high accuracy, governed access controls, and lower token costs.

To see how these capabilities come together across end-to-end architectures, read our Google Cloud Apache Spark in the Agentic Era whitepaper. The whitepaper walks through practical design patterns for multimodal data preparation, large-scale feature engineering, and connecting AI agents to governed Apache Iceberg tables through MCP tools and Knowledge Catalog.

Get started today

Managed Service for Apache Spark 4.0 is available for serverless and managed cluster deployments across all Managed Service for Apache Spark regions. The fastest way to try version 4.0 is the Data Agent Kit: install it in VS Code, Claude Code, or Antigravity to build and run Apache Spark workloads on version 4.0 with AI agents right from your IDE. You can also start from the new Overview page in the Google Cloud console, which walks you from code to a running job.

To learn more, read the Managed Service for Apache Spark 4.0 documentation for serverless deployments and managed clusters, and try the hands-on Lightning Engine codelab.

Originally published by Google Cloud Blog ↗ · rebuilt here from its own full-text RSS feed · all rights remain with the publisher, please read and support them there.