Review Board 1.7.22


HIVE-4670. Authentication module should pass the instance part of the Kerberos principle

Review Request #11705 - Created June 7, 2013 and updated

Shreepadma Venugopalan
trunk
HIVE-4670
Reviewers
hive
ashutoshc, navis
hive-git
When Kerberos authentication is enabled for HiveServer2, the thrift SASL layer passes instance@realm from the principal. This patch makes the fix necessary to pass the "short" kerberos name to HS2 instead.

 
shims/src/0.20/java/org/apache/hadoop/hive/shims/Hadoop20Shims.java
Revision c9baa7f New Change
[20] 98 lines
[+20] [+] public boolean isJobPreparing(RunningJob job) throws IOException {
99
   */
99
   */
100
  public void setTmpFiles(String prop, String files) {
100
  public void setTmpFiles(String prop, String files) {
101
    // gone in 20+
101
    // gone in 20+
102
  }
102
  }
103

    
   
103

   

    
   
104
   public String getKerberosShortName(String kerberosName) throws IOException {

    
   
105
    // raise an exception

    
   
106
    throw new IOException("Authentication is not supported with 0.20");

    
   
107
  }

    
   
108

   
104

    
   
109

   
105
  /**
110
  /**
106
   * Returns a shim to wrap MiniMrCluster
111
   * Returns a shim to wrap MiniMrCluster
107
   */
112
   */
108
  public MiniMrShim getMiniMrCluster(Configuration conf, int numberOfTaskTrackers,
113
  public MiniMrShim getMiniMrCluster(Configuration conf, int numberOfTaskTrackers,
[+20] [20] 602 lines
shims/src/0.20S/java/org/apache/hadoop/hive/shims/Hadoop20SShims.java
Revision e4a632d New Change
 
shims/src/0.23/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java
Revision 1975385 New Change
 
shims/src/common-secure/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java
Revision 777226f New Change
 
shims/src/common/java/org/apache/hadoop/hive/shims/HadoopShims.java
Revision b0f5077 New Change
 
  1. shims/src/0.20/java/org/apache/hadoop/hive/shims/Hadoop20Shims.java: Loading...
  2. shims/src/0.20S/java/org/apache/hadoop/hive/shims/Hadoop20SShims.java: Loading...
  3. shims/src/0.23/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java: Loading...
  4. shims/src/common-secure/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java: Loading...
  5. shims/src/common/java/org/apache/hadoop/hive/shims/HadoopShims.java: Loading...