Skip to content

Commit

Permalink
[KYUUBI-219]Fix NPE in HiveTokenCollector (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn authored Oct 23, 2019
1 parent 191b817 commit c6ef200
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c6ef200

Please sign in to comment.