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

    https://github.com/apache/spark/pull/21178#discussion_r185427751
  
    --- Diff: 
sql/hive-thriftserver/src/main/java/org/apache/hive/service/auth/HiveAuthFactory.java
 ---
    @@ -92,7 +95,26 @@ public String getAuthName() {
       public static final String HS2_PROXY_USER = "hive.server2.proxy.user";
       public static final String HS2_CLIENT_TOKEN = "hiveserver2ClientToken";
     
    -  public HiveAuthFactory(HiveConf conf) throws TTransportException {
    +  private static Field keytabFile = null;
    +  private static Method getKeytab = null;
    +  static {
    +    Class<?> clz = UserGroupInformation.class;
    +    try {
    +      keytabFile = clz.getDeclaredField("keytabFile");
    +      keytabFile.setAccessible(true);
    +    } catch (NoSuchFieldException nfe) {
    +      keytabFile = null;
    --- End diff --
    
    Ok, I just remember Steve commented on some JIRAs about this thing, but I 
cannot remember where it is. Anyway I will log some logs here.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to