-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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-43202][YARN] Replace reflection w/ direct calling for YARN Resource API #40860
Conversation
cc @sunchao |
also cc @tgravescs |
@pan3793 jira id should be SPARK-43202 |
fixed |
// TODO (SPARK-31733) Make this test case pass with hadoop-3 | ||
assume(!isYarnResourceTypesAvailable) | ||
// TODO (SPARK-31733) Make this test case pass with hadoop-3 | ||
ignore("specify a more specific type for the application") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#40877 try to fix this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
Merged to master, thanks all! |
What changes were proposed in this pull request?
Replace reflection w/ direct calling for YARN Resource API, including
org.apache.hadoop.yarn.api.records.ResourceInformation
,org.apache.hadoop.yarn.exceptions.ResourceNotFoundException
which were added in YARN-4081 (Hadoop 2.10.0/3.0.0)
Why are the changes needed?
Simplify code. Since SPARK-42452 removed support for Hadoop 2, we can call those API directly now.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.