Skip to content

[SPARK-34295][CORE] Exclude filesystems from token renewal at YARN - #31761

Closed
viirya wants to merge 8 commits into
apache:masterfrom
viirya:SPARK-34295
Closed

viirya wants to merge 8 commits into
apache:masterfrom
viirya:SPARK-34295

Conversation

@viirya

@viirya viirya commented Mar 5, 2021 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This patch adds a config spark.yarn.kerberos.renewal.excludeHadoopFileSystems which lists the filesystems to be excluded from delegation token renewal at YARN.

Why are the changes needed?

MapReduce jobs can instruct YARN to skip renewal of tokens obtained from certain hosts by specifying the hosts with configuration mapreduce.job.hdfs-servers.token-renewal.exclude=,,..,.

But seems Spark lacks of similar option. So the job submission fails if YARN fails to renew DelegationToken for any of the remote HDFS cluster. The failure in DT renewal can happen due to many reason like Remote HDFS does not trust Kerberos identity of YARN etc. We have a customer facing such issue.

Does this PR introduce any user-facing change?

No, if the config is not set. Yes, as users can use this config to instruct YARN not to renew delegation token from certain filesystems.

How was this patch tested?

It is hard to do unit test for this. We did verify it work from the customer using this fix in the production environment.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants