Skip to content

[SPARK-27760][CORE] Spark resources - change user resource config from .count to .amount#24810

Closed
tgravescs wants to merge 3 commits intoapache:masterfrom
tgravescs:SPARK-27760-amount
Closed

[SPARK-27760][CORE] Spark resources - change user resource config from .count to .amount#24810
tgravescs wants to merge 3 commits intoapache:masterfrom
tgravescs:SPARK-27760-amount

Conversation

@tgravescs
Copy link
Contributor

What changes were proposed in this pull request?

Change the resource config spark.{executor/driver}.resource.{resourceName}.count to .amount to allow future usage of containing both a count and a unit. Right now we only support counts - # of gpus for instance, but in the future we may want to support units for things like memory - 25G. I think making the user only have to specify a single config .amount is better then making them specify 2 separate configs of a .count and then a .unit. Change it now since its a user facing config.

Amount also matches how the spark on yarn configs are setup.

How was this patch tested?

Unit tests and manually verified on yarn and local cluster mode

@tgravescs tgravescs changed the title [SPARK-27760] Spark resources - user configs change .count to be .amount [SPARK-27760][CORE] Spark resources - user configs change .count to be .amount Jun 5, 2019
@tgravescs tgravescs changed the title [SPARK-27760][CORE] Spark resources - user configs change .count to be .amount [SPARK-27760][CORE] Spark resources - change user resource config from .count to .amount Jun 5, 2019
@tgravescs
Copy link
Contributor Author

@jiangxb1987 @mengxr

@SparkQA
Copy link

SparkQA commented Jun 5, 2019

Test build #106212 has finished for PR 24810 at commit fde30ff.

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

Copy link
Contributor

@jiangxb1987 jiangxb1987 left a comment

Choose a reason for hiding this comment

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

LGTM

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 except two nit comments on test case names.

@SparkQA
Copy link

SparkQA commented Jun 5, 2019

Test build #106215 has finished for PR 24810 at commit 92c5359.

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

@tgravescs
Copy link
Contributor Author

Updated, thanks for the reviews, I'll let this run through jenkins and commit if everything looks good.

@SparkQA
Copy link

SparkQA commented Jun 6, 2019

Test build #106243 has finished for PR 24810 at commit 86757d3.

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

@tgravescs
Copy link
Contributor Author

very odd test faiure, it has 4 executors instead of 3 which has nothing to do with this change just running local-cluster mode. I'll kick it again.

@tgravescs
Copy link
Contributor Author

test this please

@dongjoon-hyun
Copy link
Member

Thank you for updating, @tgravescs . Yes. The failure looks weird. Let's see the new Jenkins result.

@SparkQA
Copy link

SparkQA commented Jun 6, 2019

Test build #106245 has finished for PR 24810 at commit 86757d3.

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

@tgravescs
Copy link
Contributor Author

merged to master

@asfgit asfgit closed this in d30284b Jun 6, 2019
emanuelebardelli pushed a commit to emanuelebardelli/spark that referenced this pull request Jun 15, 2019
…m .count to .amount

## What changes were proposed in this pull request?

Change the resource config spark.{executor/driver}.resource.{resourceName}.count to .amount to allow future usage of containing both a count and a unit.  Right now we only support counts - # of gpus for instance, but in the future we may want to support units for things like memory - 25G. I think making the user only have to specify a single config .amount is better then making them specify 2 separate configs of a .count and then a .unit.  Change it now since its a user facing config.

Amount also matches how the spark on yarn configs are setup.

## How was this patch tested?

Unit tests and manually verified on yarn and local cluster mode

Closes apache#24810 from tgravescs/SPARK-27760-amount.

Authored-by: Thomas Graves <tgraves@nvidia.com>
Signed-off-by: Thomas Graves <tgraves@apache.org>
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.

4 participants