GitHub user yaooqinn opened a pull request:

    https://github.com/apache/spark/pull/17387

    [SPARK-20060][Deploy][Kerberos][Spark Shell] Obtain credentials for proxy 
user before talking to hive metastore

    ## What changes were proposed in this pull request?
    
    For **Spark on non-Yarn** mode on a  kerberized hdfs, we don't obtain 
credentials from hive metastore, hdfs, etc and just use the local kinited user 
to connecting them. But if we specify the --proxy-user argument on non-yarn 
mode, such as local, standalone, after we simply use `UGI.createProxyUser` to 
get a proxy ugi as the effective user and wrap the code in doAs, the proxy ugi 
has no credentials to talk to hive metastore. Thus, we need to obtain 
credentials via the real user and add them to the proxy ugi.
    
    
    ## How was this patch tested?
    
     unit tests
     manual tests on kerberized metastore service and hdfs
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yaooqinn/spark proxy-on-non-yarn

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/17387.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 #17387
    
----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to