[KYUUBI-219]Fix NPE in HiveTokenCollector (#220)
This commit is contained in:
parent
191b8171d6
commit
c6ef20089e
@ -44,7 +44,7 @@ private[security] object HiveTokenCollector extends TokenCollector with Logging
|
||||
val currentUser = UserGroupInformation.getCurrentUser.getUserName
|
||||
val credentials = new Credentials()
|
||||
KyuubiHadoopUtil.doAsRealUser {
|
||||
val hive = Hive.get(c, classOf[HiveConf])
|
||||
val hive = Hive.get(c, true)
|
||||
info(s"Getting token from Hive Metastore for owner $currentUser via $principal")
|
||||
val tokenString = hive.getDelegationToken(currentUser, principal)
|
||||
val token = new Token[DelegationTokenIdentifier]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user