-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-29641][PYTHON][CORE] Stage Level Sched: Add python api's and tests #28085
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
Closed
Closed
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
acdf6e8
Stage level scheduling python api support
tgravescs 24c1a96
revert pom changes
tgravescs 5647535
Fix log messages
tgravescs af69e4b
Try changing way we pass pyspark memory
tgravescs 4a7f39a
Change to use local property to pass pyspark memory
tgravescs 27e1a10
add missing api to get java map
tgravescs af602b6
Add java api test
tgravescs 2b515c8
cleanup
tgravescs a052427
fix indentation
tgravescs 6a90fbe
fix newline around markup in python
tgravescs 2d754f7
Update the version added for rdd api's
tgravescs 1071f40
make java return values immutable
tgravescs e81a480
Try reverting java api suite
tgravescs ae8e312
Fix minor review comments
tgravescs 0d7c79f
Update to pass the executor cores into PythonRunner
tgravescs 956dc84
move python files to resources module and misc fixes
tgravescs 32bca95
Fix how we pass the pyspark memory and cores
tgravescs e494c05
Fix python imports
tgravescs 3e15ed9
Fix java api suite test from hanging
tgravescs c3c885a
change test to not rely on being able to set pyspark memory after
tgravescs 3562539
Add in pyspark.resource module
tgravescs 544119e
review comments
tgravescs 8469038
Changes to allow using resource apis without SparkContext
tgravescs a0b9137
More changes to call without SparkContext
tgravescs 2235654
cleanup
tgravescs bf1a215
fix style issues
tgravescs 62cb02c
Change getResourceProfile to return None to match scala side
tgravescs a6e9ac2
Change to make python versions do same thing as the scala versions as
tgravescs 528094c
add pyspark resource module to testing module
tgravescs 89be02e
Update names of function/variable
tgravescs 354fb0c
Other variable name changes
tgravescs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
""" | ||
APIs to let users manipulate resource requirements. | ||
""" | ||
from pyspark.resource.executorrequests import ExecutorResourceRequest, ExecutorResourceRequests | ||
from pyspark.resource.taskrequests import TaskResourceRequest, TaskResourceRequests | ||
from pyspark.resource.resourceprofilebuilder import ResourceProfileBuilder | ||
from pyspark.resource.resourceprofile import ResourceProfile | ||
|
||
__all__ = [ | ||
"TaskResourceRequest", "TaskResourceRequests", "ExecutorResourceRequest", | ||
"ExecutorResourceRequests", "ResourceProfile", "ResourceProfileBuilder", | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.