Skip to content

[Spark] GCS access fails with 403 on Spark 4.2 and 4.3 #2278

Closed

Description

@timothyw553

On Spark 4.2 and 4.3, reading or writing a table on gs:// through Unity Catalog fails with a 403 from Google. It works on Spark 4.0 and 4.1.

Why

  • The token Unity Catalog vends only covers the table's folder, but two checks in Google's GCS connector look outside it: it reads the folders above the table, and it reads the bucket's layout.
  • Unity Catalog meant to switch the first one off, but Hadoop 3.5 now ships it as "on" in its own defaults, which our code mistook for the user's choice.
  • Separately, Hadoop 3.5's built-in GCS module (hadoop-gcp) can't take a vended token, and the 3.0.2 Google jar in the docs fails on Hadoop 3.5. Google's connector 4.0.10 works on every Spark version.

Fix: #2281 turns both checks off and updates the docs to use connector 4.0.10.

Activity

  1. changed the title [-][Spark] GCS credential vending fails on Spark 4.2 and 4.3: hadoop-gcp has no access-token auth type[/-] [+][Spark] GCS access fails with 403 on Spark 4.2 and 4.3[/+] on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions