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

Add support for spark-submit packages and repositories #1040

Merged
merged 3 commits into from
Oct 10, 2020

Conversation

mdelaney
Copy link
Contributor

@mdelaney mdelaney commented Oct 9, 2020

  • added support for packages, exclude-packages, and repositories
    spark-submit parameters
  • added these new parameters to the user guide documentation

@google-cla
Copy link

google-cla bot commented Oct 9, 2020

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

- added support for packages, exclude-packages, and repositories
  spark-submit parameters
- added these new parameters to the user guide documentation
@mdelaney
Copy link
Contributor Author

mdelaney commented Oct 9, 2020

@googlebot I signed it!

@google-cla
Copy link

google-cla bot commented Oct 9, 2020

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

// +optional
ExcludePackages []string `json:"excludePackages,omitempty"`
// Repositories is a list of additional remote repositories to search for the maven coordinate
// given with the "packages" option
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: missing period at the end.

}
if len(app.Spec.Deps.ExcludePackages) > 0 {
depsConfOptions = append(depsConfOptions,
"--exclude-packages", strings.Join(app.Spec.Deps.ExcludePackages, ","))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: there's no need to start a new line here and below.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@mdelaney mdelaney force-pushed the add-package-and-repo-support branch from 42ab867 to eb4038d Compare October 9, 2020 22:26
@google-cla
Copy link

google-cla bot commented Oct 9, 2020

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented Oct 9, 2020

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@mdelaney
Copy link
Contributor Author

mdelaney commented Oct 9, 2020

Addressed comments, thanks for the super fast review! :-)

// Packages is a list of maven coordinates of jars to include on the driver and executor
// classpaths. This will search the local maven repo, then maven central and any additional
// remote repositories given by the "repositories" option.
// Each papckage should be of the form "groupId:artifactId:version"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: missing period at the end.

// Each papckage should be of the form "groupId:artifactId:version"
// +optional
Packages []string `json:"packages,omitempty"`
// ExcludePackages is a list of groupId:artifactId, to exclude while resolving the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quotes around groupId:artifactId.

@google-cla
Copy link

google-cla bot commented Oct 9, 2020

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@liyinan926 liyinan926 merged commit cf34460 into kubeflow:master Oct 10, 2020
@mdelaney mdelaney deleted the add-package-and-repo-support branch October 12, 2020 18:16
jbhalodia-slack pushed a commit to jbhalodia-slack/spark-operator that referenced this pull request Oct 4, 2024
* Add support for spark-submit packages and repositories

- added support for packages, exclude-packages, and repositories
  spark-submit parameters
- added these new parameters to the user guide documentation

* address review comments

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

Successfully merging this pull request may close these issues.

3 participants