Skip to content

Spark 3+ support #1167

Closed
Closed

Description

@mike0sv

Expected Behavior

Can use spark 3+ clusters to run jobs.

Current Behavior

If used together with spark 3+, there is an exception

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/sql/sources/v2/StreamWriteSupport

which is caused by old (2+) spark dependencies for IngestionJob.

Steps to reproduce

I guess pip install pyspark>=3 and start any job will be enough

Specifications

  • Version: 0.8.0
  • Platform: linux
  • Subsystem:

Possible Solution

Bump spark.version in dependencies and update job code accordingly.

Activity

  1. woop commented on Nov 16, 2020

    @woop
    Member

    @oavdeev @pyalex I believe there was a specific reason why we couldn't use Spark 3.0 right? Protobuf/grpc dependencies?

    EDIT: So I think the question is whether we can write the job for Spark 2.0 but make it compatible with 3+

  2. mike0sv commented on Nov 17, 2020

    @mike0sv
    ContributorAuthor
  3. pyalex commented on Nov 23, 2020

    @pyalex
    Collaborator

    Main reason for spark 2.4 was that bq connector was not supporting 3.x on that moment and that dataproc stable version is still 2.4.
    BQ connector seems not an issue anymore

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions