Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport SPARK-25957 #29525

Closed
wants to merge 1 commit into from

Conversation

jkleckner
Copy link

@jkleckner jkleckner commented Aug 23, 2020

What changes were proposed in this pull request?

This is a backport of SPARK-25957 pull request #23053
No changes were made other than picking the commit.

Why are the changes needed?

This is an optimization so that build environments can opt out of building some images.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

I depend on this for building using gitlab and it works for that.

…ages optional

## What changes were proposed in this pull request?
bin/docker-image-tool.sh tries to build all docker images (JVM, PySpark
and SparkR) by default. But not all spark distributions are built with
SparkR and hence this script will fail on such distros.

With this change, we make building alternate language binding docker images (PySpark and SparkR) optional. User has to specify dockerfile for those language bindings using -p and -R flags accordingly, to build the binding docker images.

## How was this patch tested?

Tested following scenarios.
*bin/docker-image-tool.sh -r <repo> -t <tag> build* --> Builds only JVM docker image (default behavior)

*bin/docker-image-tool.sh -r <repo> -t <tag> -p kubernetes/dockerfiles/spark/bindings/python/Dockerfile build* --> Builds both JVM and PySpark docker images

*bin/docker-image-tool.sh -r <repo> -t <tag> -p kubernetes/dockerfiles/spark/bindings/python/Dockerfile -R kubernetes/dockerfiles/spark/bindings/R/Dockerfile build* --> Builds JVM, PySpark and SparkR docker images.

Author: Nagaram Prasad Addepally <ram@cloudera.com>

Closes apache#23053 from ramaddepally/SPARK-25957.
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@dongjoon-hyun
Copy link
Member

Thank you for making a PR, @jkleckner .
However, SPARK-25957 is an Improvement JIRA. Apache Spark community has a policy which doesn't backport new feature and improvement to keep old branches safely. Bug type issues are considered as backportable.

@jkleckner
Copy link
Author

Ok, thanks for the update. I'll just keep it in my build branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants