aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests
diff options
context:
space:
mode:
authorYu Gao <ygao@us.ibm.com>2015-11-15 14:53:59 -0800
committerYin Huai <yhuai@databricks.com>2015-11-15 14:53:59 -0800
commit72c1d68b4ab6acb3f85971e10947caabb4bd846d (patch)
tree337e24a65fa1c455fa8b019db9fb8b118e4b126c /R/pkg/inst/tests
parent3e2e1873b2762d07e49de8f9ea709bf3fa2d171c (diff)
downloadspark-72c1d68b4ab6acb3f85971e10947caabb4bd846d.tar.gz
spark-72c1d68b4ab6acb3f85971e10947caabb4bd846d.tar.bz2
spark-72c1d68b4ab6acb3f85971e10947caabb4bd846d.zip
[SPARK-10181][SQL] Do kerberos login for credentials during hive client initialization
On driver process start up, UserGroupInformation.loginUserFromKeytab is called with the principal and keytab passed in, and therefore static var UserGroupInfomation,loginUser is set to that principal with kerberos credentials saved in its private credential set, and all threads within the driver process are supposed to see and use this login credentials to authenticate with Hive and Hadoop. However, because of IsolatedClientLoader, UserGroupInformation class is not shared for hive metastore clients, and instead it is loaded separately and of course not able to see the prepared kerberos login credentials in the main thread. The first proposed fix would cause other classloader conflict errors, and is not an appropriate solution. This new change does kerberos login during hive client initialization, which will make credentials ready for the particular hive client instance. yhuai Please take a look and let me know. If you are not the right person to talk to, could you point me to someone responsible for this? Author: Yu Gao <ygao@us.ibm.com> Author: gaoyu <gaoyu@gaoyu-macbookpro.roam.corp.google.com> Author: Yu Gao <crystalgaoyu@gmail.com> Closes #9272 from yolandagao/master.
Diffstat (limited to 'R/pkg/inst/tests')
0 files changed, 0 insertions, 0 deletions