GitHub user jerryshao opened a pull request: https://github.com/apache/spark/pull/17335
[SPARK-19995][Hive][Yarn] Using real user to initialize hive SessionState ## What changes were proposed in this pull request? Using current user to connect MetaStore in `HiveClientImpl` will introduce tgt not found issue if current user is not kinited. This could be happened when using `--proxy-user`, only real user is kinited. So we should use real user to connect Metastore instead of current user to avoid this issue. ## How was this patch tested? Local verified in secure cluster. @vanzin @tgravescs @dongjoon-hyun please help to review, thanks a lot. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jerryshao/apache-spark SPARK-19995 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/17335.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 #17335 ---- commit d31dcb340eba66d6adf6c027675fb9ebb5b18ce2 Author: jerryshao <ss...@hortonworks.com> Date: 2017-03-17T09:14:56Z Using real user to initialize hive SessionState Change-Id: If423f3fdc709ed3284cafc01efd1fe389f635560 ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org