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-43202][YARN] Replace reflection w/ direct calling for YARN Resource API #40860

Closed
wants to merge 1 commit into from

Conversation

pan3793
Copy link
Member

@pan3793 pan3793 commented Apr 19, 2023

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.

@github-actions github-actions bot added the YARN label Apr 19, 2023
@pan3793
Copy link
Member Author

pan3793 commented Apr 20, 2023

cc @sunchao

@pan3793
Copy link
Member Author

pan3793 commented Apr 20, 2023

also cc @tgravescs

@LuciferYang
Copy link
Contributor

@pan3793 jira id should be SPARK-43202

@pan3793 pan3793 changed the title [SPARK-43197][YARN] Replace reflection w/ direct calling for YARN Resource API [SPARK-43202][YARN] Replace reflection w/ direct calling for YARN Resource API Apr 20, 2023
@pan3793
Copy link
Member Author

pan3793 commented Apr 20, 2023

@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") {
Copy link
Contributor

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

Copy link
Member

@sunchao sunchao left a comment

Choose a reason for hiding this comment

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

Looks OK

Copy link
Contributor

@tgravescs tgravescs left a comment

Choose a reason for hiding this comment

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

lgtm.

@sunchao sunchao closed this in 5bade8a Apr 20, 2023
@sunchao
Copy link
Member

sunchao commented Apr 20, 2023

Merged to master, thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants