Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20784#discussion_r177174365
  
    --- Diff: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
 ---
    @@ -121,6 +134,25 @@ private[hive] object SparkSQLCLIDriver extends Logging 
{
           }
         }
     
    +    if (isSecuredAndProxy(conf)) {
    +      val currentUser = UserGroupInformation.getCurrentUser
    +      try {
    +        SparkHadoopUtil.get.doAsRealUser {
    --- End diff --
    
    Couldn't you just call `HiveDelegationTokenProvider` here instead of copy & 
pasting the code?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to