Skip to content

[SPARK-20191][yarn] Crate wrapper for RackResolver so tests can override it. - #17508

Closed
vanzin wants to merge 1 commit into
apache:masterfrom
vanzin:SPARK-20191
Closed

vanzin wants to merge 1 commit into
apache:masterfrom
vanzin:SPARK-20191

Conversation

@vanzin

@vanzin vanzin commented Apr 2, 2017

Copy link
Copy Markdown
Contributor

Current test code tries to override the RackResolver used by setting
configuration params, but because YARN libs statically initialize the
resolver the first time it's used, that means that those configs don't
really take effect during Spark tests.

This change adds a wrapper class that easily allows tests to override the
behavior of the resolver for the Spark code that uses it.

…ide it.

Current test code tries to override the RackResolver used by setting
configuration params, but because YARN libs statically initialize the
resolver the first time it's used, that means that those configs don't
really take effect during Spark tests.

This change adds a wrapper class that easily allows tests to override the
behavior of the resolver for the Spark code that uses it.
@SparkQA

SparkQA commented Apr 2, 2017

Copy link
Copy Markdown

Test build #75454 has finished for PR 17508 at commit 70e48fb.

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

@vanzin

vanzin commented Apr 3, 2017

Copy link
Copy Markdown
Contributor Author

@srowen @tgravescs

@srowen srowen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems OK as a simple dependency injection mechanism though you all will know this code better than I

@vanzin

vanzin commented Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

Merging to master / 2.1.

@asfgit asfgit closed this in 0736980 Apr 4, 2017
asfgit pushed a commit that referenced this pull request Apr 4, 2017
…ide it.

Current test code tries to override the RackResolver used by setting
configuration params, but because YARN libs statically initialize the
resolver the first time it's used, that means that those configs don't
really take effect during Spark tests.

This change adds a wrapper class that easily allows tests to override the
behavior of the resolver for the Spark code that uses it.

Author: Marcelo Vanzin <vanzin@cloudera.com>

Closes #17508 from vanzin/SPARK-20191.

(cherry picked from commit 0736980)
Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com>
@vanzin
vanzin deleted the SPARK-20191 branch April 11, 2017 18:25
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.

3 participants