← Back to Pull requests

[SPARK-60837][DOCS] Document that NodeManagers must run on a supported Java version for the Spark Shuffle Service #60052

Closed
unknown closed this pull request without merging on Nov 03, 2026 09:15 UTC
View on GitHub
unknown unknown commented on Nov 03, 2026 09:09 UTC
Author

What changes were proposed in this pull request?

This PR adds a paragraph to the Configuring the External Shuffle Service section of docs/running-on-yarn.md. It states that:

  • the Spark Shuffle Service runs inside the NodeManager JVM, so all NodeManagers must run on a supported version of Java, and

  • unlike Spark applications, the shuffle service cannot use a different JDK from the NodeManager.
  • The paragraph links the supported Java versions in docs/index.md instead of naming a Java version, so the same text stays correct when the minimum Java version changes.

    Why are the changes needed?

    spark-<version>-yarn-shuffle.jar is built from common/network-yarn, which does not override java.version. So its classes target the minimum Java version of Apache Spark, which is Java 17 since Apache Spark 4.0.0. For example, YarnShuffleService.class has the class file major version 61 in the 4.0.4, 4.1.3, 4.2.0, and 4.3.0 binary distributions. A NodeManager on an older Java cannot load org.apache.spark.network.yarn.YarnShuffleService.

    The guide explains how to use a different JDK for Spark applications when the YARN cluster runs an older Java (Configuring different JDKs for Spark Applications). That sets JAVA_HOME of the AM and the executors only, and does not help the shuffle service, which the NodeManager loads as an auxiliary service. However, the guide has never mentioned the Java requirement of the NodeManagers. For example, the v4.0.0 (2025-05-19) guide said Apache Hadoop does not support Java 17 as of 3.4.1, while its Configuring the External Shuffle Service section had no Java requirement.

    This was raised in the review of #59897 (https://github.com/apache/spark/pull/59897#discussion_r4452535582), which makes Java 21 the minimum in Apache Spark 5.0.0. The documentation gap is independent of #59897 because it exists since Apache Spark 4.0.0.

    Does this PR introduce _any_ user-facing change?

    No. This is a documentation-only change.

    How was this patch tested?

    Manual review.

  • Both link targets already exist: the Downloading section of index.md, which lists the supported Java versions, and the Configuring different JDKs for Spark Applications section, which the same page already links at the top.

  • The class file versions above were read from yarn/spark-<version>-yarn-shuffle.jar of the binary distributions.
  • Was this patch authored or co-authored using generative AI tooling?

    Generated-by: Claude Opus 5.5

    Diff: 320 lines (+240 / -80) across 4 files Reviewer: peter-toth Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.42) × (1 − Review Confidence (0.54)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 320 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 75% · Reviewer familiarity: 35%
    54%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.345
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #60052"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 54.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 41.9% (MEDIUM) · Higher = larger blast radius
    41.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 54.4% · Lower = rushed or shallow review
    54.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.1% · Safe to merge
    19.1%
    Repository