Back to all use cases
Apache SparkInsurance

The jobs that only run on the old Spark

An insurer's actuarial batch jobs run on Spark 3.4 on an on-premises YARN cluster, and 3.4.4, released on 27 October 2024, was the last 3.4 release. Moving to Spark 4 changes the Java, Scala and Python baseline and can change results, so the jobs stay put and need patching.

Challenge

Spark 3.3 and 3.4 have no further releases. The last 3.3 release was 3.3.4 on 16 December 2023 and the last 3.4 release was 3.4.4 on 27 October 2024. A fix can exist for one and not the other. CVE-2025-55039, on unauthenticated AES-CTR RPC encryption, affects every Spark version before 3.4.4, 3.5.2 and 4.0.0. No 3.3 release carries the fix, because 3.3.4 came out before it. It applies only when spark.network.crypto.enabled is true.

For actuarial work the upgrade is harder than the patch. Spark 4.0 dropped JDK 8 and 11, dropped Scala 2.12 and Python 3.8, and turned ANSI SQL mode on by default. Lenient casts and silent overflow in old queries then fail or return different values. For a job whose output feeds reserve or pricing figures, that is a result-comparison project, and it needs sign-off from the people who own the numbers.

Environment

A self-managed Spark 3.3 or 3.4 deployment submitting batch jobs to an on-premises YARN cluster, with Scala jobs packaged as _2.12 builds and PySpark jobs on an older Python interpreter. The jobs run on a schedule, read from HDFS or Hive tables, and write results that other teams reconcile.

Internal libraries and connectors are also built as _2.12, so each one needs a _2.13 build before a job can move. The YARN and Hadoop layers underneath have their own support dates, and the same security review asks about them.

Options

Move to Spark 3.5 first. It supports Java 8, 11 or 17 and Scala 2.12 or 2.13, and the project gives 3.5.x security fixes only until November 2027. It is a smaller step than Spark 4, but it is a dated one.

Move straight to Spark 4. Right for jobs that are being rebuilt anyway. It needs a _2.13 build of every dependency, a supported JDK and a result comparison on production data.

Move the jobs to a managed Spark service. Removes the YARN operations, and the code and result changes still land on you.

Stay on 3.3 or 3.4 with patched builds. Real when the jobs are stable, the people who validated them are scarce and the upgrade is scheduled for a later budget cycle.

Approach

OSSeva Patch ships backported security fixes for Spark 3.4 and 3.3 as signed builds (GPG and Sigstore). Critical CVEs are fixed within 48 hours and High within 7 days. Jobs keep their Java, Scala and Python stack and their code, so nothing needs revalidating to take a patch.

OSSeva Assure adds an inventory of Spark versions, Scala builds and cluster managers across the jobs, an upgrade path assessment from 3.x to Spark 4, and 24/7 reactive support. The inventory is where the _2.12 dependencies show up, along with the jobs that depend on lenient SQL behavior. OSSeva Operate adds 24/7 cluster and job monitoring with a 15-minute P1 response SLA.

This engagement is about version support, not job tuning. Slow or skewed jobs are a separate piece of work.

What this delivers

Spark 3.3 and 3.4 stay patched on the platform the jobs were validated on, with a written path to Spark 4 that names the dependencies and the result comparisons still to do. The upgrade then happens when the actuarial team is ready, not when a scanner report forces it. OSSeva for Apache Spark is priced per application. Book a discovery call for a quote.

Go deeper

Questions

Frequently asked questions

Book a 15-minute call

Is Spark 3.4 still supported?

Not by the Spark project. The last 3.4 release was 3.4.4 on 27 October 2024, and endoflife.date records October 2024 as its end of life. OSSeva patches Spark 3.4 and 3.3 after end of life.

Do Spark 3.3 clusters get the CVE-2025-55039 fix?

No upstream fix exists for 3.3. The CVE is fixed in 3.4.4, 3.5.2 and 4.0.0 and affects every version before them, and 3.3.4 was released before the fix. It applies only when spark.network.crypto.enabled is true.

What breaks when a job moves from Spark 3.4 to Spark 4?

Spark 4.0 dropped JDK 8 and 11, Scala 2.12 and Python 3.8, removed Mesos support and turned ANSI SQL mode on by default. Every _2.12 dependency needs a _2.13 build, and query results can change.

Does patching change our Spark jobs or YARN setup?

No. Patch builds run on the same line with the same Java, Scala and Python versions, so job code is unchanged. Assure covers the cluster managers in its inventory.

See every EOL & CVE-patching use case

All use cases
Book a call