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

[SPARK-35013][CORE] Don't allow to set spark.driver.cores=0 #32504

Closed
wants to merge 4 commits into from

Conversation

shahidki31
Copy link
Contributor

What changes were proposed in this pull request?

Currently spark is not allowing to set spark.driver.memory, spark.executor.cores, spark.executor.memory to 0, but allowing driver cores to 0. This PR checks for driver core size as well. Thanks @oleg Lypkan for finding this.

Why are the changes needed?

To make the configuration check consistent.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manual testing

@github-actions github-actions bot added the CORE label May 11, 2021
@SparkQA
Copy link

SparkQA commented May 11, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42906/

@SparkQA
Copy link

SparkQA commented May 11, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42906/

@SparkQA
Copy link

SparkQA commented May 11, 2021

Test build #138383 has finished for PR 32504 at commit b615db6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun dongjoon-hyun changed the title [Minor][SPARK-35013]Don't allow to set spark.driver.cores=0 [SPARK-35013][CORE] Don't allow to set spark.driver.cores=0 May 11, 2021
@dongjoon-hyun
Copy link
Member

Apache Spark depends on your GitHub Repo's GitHub Action jobs.

Could you update your master branch and your PR branch once more and enable all GitHub Actions jobs in your repo like the following?

@shahidki31
Copy link
Contributor Author

Sure @dongjoon-hyun . Let me go through the doc. Thanks

@SparkQA
Copy link

SparkQA commented May 11, 2021

Kubernetes integration test unable to build dist.

exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42918/

@SparkQA
Copy link

SparkQA commented May 11, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42920/

@SparkQA
Copy link

SparkQA commented May 11, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42920/

@SparkQA
Copy link

SparkQA commented May 11, 2021

Test build #138396 has finished for PR 32504 at commit 89a2796.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 11, 2021

Test build #138398 has finished for PR 32504 at commit a63fcc3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shahidki31
Copy link
Contributor Author

@dongjoon-hyun I have updated the branch with master. Kindly review

@HyukjinKwon
Copy link
Member

@shahidki31 can you retrigger the test please? https://github.com/shahidki31/spark/actions/runs/832876763

@HyukjinKwon
Copy link
Member

cc @Ngone51 @mridulm @tgravescs FYI

@shahidki31
Copy link
Contributor Author

shahidki31 commented May 12, 2021

@shahidki31 can you retrigger the test please? https://github.com/shahidki31/spark/actions/runs/832876763

Sure @HyukjinKwon Let me check

@shahidki31
Copy link
Contributor Author

Hi @HyukjinKwon All the tests are passing. Seems Linters, Licence job is failing. But that is unrelated to the PR. Is it a known failure?
Screenshot 2021-05-12 at 12 30 05 PM

@HyukjinKwon
Copy link
Member

That's fixed in the upstream. Can you sync with the latest master branch of Apache Spark repo by rebasing/merging?

@shahidki31
Copy link
Contributor Author

Thanks. Let me retrgger that.

@SparkQA
Copy link

SparkQA commented May 12, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42965/

@SparkQA
Copy link

SparkQA commented May 12, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42965/

@SparkQA
Copy link

SparkQA commented May 12, 2021

Test build #138444 has finished for PR 32504 at commit 5f480e7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 12, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42972/

@SparkQA
Copy link

SparkQA commented May 12, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42972/

@SparkQA
Copy link

SparkQA commented May 12, 2021

Test build #138451 has finished for PR 32504 at commit a26b180.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@tgravescs
Copy link
Contributor

changes look fine, assume it was manually tested

@shahidki31
Copy link
Contributor Author

shahidki31 commented May 12, 2021

changes look fine, assume it was manually tested

@tgravescs Yes, I verified manually
image

@shahidki31
Copy link
Contributor Author

Retest this please

@SparkQA
Copy link

SparkQA commented May 12, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42986/

@SparkQA
Copy link

SparkQA commented May 12, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42986/

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

@dongjoon-hyun
Copy link
Member

Thank you, @shahidki31 and all.
Merged to master.

@SparkQA
Copy link

SparkQA commented May 12, 2021

Test build #138465 has finished for PR 32504 at commit a26b180.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shahidki31
Copy link
Contributor Author

Thanks @dongjoon-hyun and all for the reviews

@shahidki31 shahidki31 deleted the shahid/drivercore branch May 12, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants