GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/19593
[WIP][SPARK-22374][SQL][2.2] closeAllForUGI is required after using
loginUserFromKeytab
## What changes were proposed in this pull request?
In a secure cluster, FileSystem.Cache grows indefinitely when we use
1. `spark.yarn.principal` and `spark.yarn.keytab` is used.
2. Spark Thrift Server run with `hive.server2.enable.doAs=false`.
For example, with 6GB (-Xmx6144m) options, `HiveConf` consumes 4GB inside
FileSystem.CACHE and OOM occurs. This PR aims to clear up `FileSystem.Cache` by
using `closeAllForUGI`.


## How was this patch tested?
N/A
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark SPARK-22374
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19593.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #19593
----
commit ea3943e977d378609c9440c049bdb86a308ba428
Author: Dongjoon Hyun <[email protected]>
Date: 2017-10-27T03:23:13Z
[SPARK-22374][SQL][2.2] closeAllForUGI is required after using
loginUserFromKeytab
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]