Github user wangyum commented on a diff in the pull request: https://github.com/apache/spark/pull/20866#discussion_r176906522 --- Diff: core/src/main/scala/org/apache/spark/deploy/security/HiveDelegationTokenProvider.scala --- @@ -92,8 +93,8 @@ private[security] class HiveDelegationTokenProvider s"$principal at $metastoreUri") doAsRealUser { - val hive = Hive.get(conf, classOf[HiveConf]) - val tokenStr = hive.getDelegationToken(currentUser.getUserName(), principal) + metaStoreClient = new HiveMetaStoreClient(conf.asInstanceOf[HiveConf]) + val tokenStr = metaStoreClient.getDelegationToken(currentUser.getUserName, principal) --- End diff -- Yes, both HMS 1.x and 2.x
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org