Review Board 1.7.22


[HIVE-4911] Enable QOP configuration for Hive Server 2 thrift transport

Review Request #12824 - Created July 22, 2013 and updated

Arup Malakar
trunk
HIVE-4911
Reviewers
hive
hive-git
The QoP for hive server 2 should be configurable to enable encryption. A new configuration should be exposed "hive.server2.thrift.rpc.protection". This would give greater control configuring hive server 2 service.

 
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
Revision 11c31216495d0c4e454f2627af5c93a9f270b1fe New Change
[20] 722 lines
[+20] [+] public class HiveConf extends Configuration {
723
    HIVE_SERVER2_THRIFT_MIN_WORKER_THREADS("hive.server2.thrift.min.worker.threads", 5),
723
    HIVE_SERVER2_THRIFT_MIN_WORKER_THREADS("hive.server2.thrift.min.worker.threads", 5),
724
    HIVE_SERVER2_THRIFT_MAX_WORKER_THREADS("hive.server2.thrift.max.worker.threads", 100),
724
    HIVE_SERVER2_THRIFT_MAX_WORKER_THREADS("hive.server2.thrift.max.worker.threads", 100),
725

    
   
725

   
726
    HIVE_SERVER2_THRIFT_PORT("hive.server2.thrift.port", 10000),
726
    HIVE_SERVER2_THRIFT_PORT("hive.server2.thrift.port", 10000),
727
    HIVE_SERVER2_THRIFT_BIND_HOST("hive.server2.thrift.bind.host", ""),
727
    HIVE_SERVER2_THRIFT_BIND_HOST("hive.server2.thrift.bind.host", ""),

    
   
728
    HIVE_SERVER2_THRIFT_RPC_PROTECTION("hive.server2.thrift.rpc.protection", "auth"),
728

    
   
729

   
729

    
   
730

   
730
    // HiveServer2 auth configuration
731
    // HiveServer2 auth configuration
731
    HIVE_SERVER2_AUTHENTICATION("hive.server2.authentication", "NONE"),
732
    HIVE_SERVER2_AUTHENTICATION("hive.server2.authentication", "NONE"),
732
    HIVE_SERVER2_KERBEROS_KEYTAB("hive.server2.authentication.kerberos.keytab", ""),
733
    HIVE_SERVER2_KERBEROS_KEYTAB("hive.server2.authentication.kerberos.keytab", ""),
[+20] [20] 516 lines
data/conf/hive-site.xml
Revision 4e6ff16135833da1a4df12a12a6fe59ad4f870ba New Change
 
jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
Revision 00f43511b478c687b7811fc8ad66af2b507a3626 New Change
 
service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java
Revision 1809e1b26ceee5de14a354a0e499aa8c0ab793bf New Change
 
service/src/java/org/apache/hive/service/auth/KerberosSaslHelper.java
Revision 379dafb8377aed55e74f0ae18407996bb9e1216f New Change
 
service/src/java/org/apache/hive/service/auth/SaslQOP.java
New File
 
shims/src/common-secure/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java
Revision 777226f8da0af2235d4294cd6a676fa8192c89e4 New Change
 
shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.java
Revision 9b0ec0a75563b41339e6fc747556440fdf83e31e New Change
 
  1. common/src/java/org/apache/hadoop/hive/conf/HiveConf.java: Loading...
  2. data/conf/hive-site.xml: Loading...
  3. jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java: Loading...
  4. service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java: Loading...
  5. service/src/java/org/apache/hive/service/auth/KerberosSaslHelper.java: Loading...
  6. service/src/java/org/apache/hive/service/auth/SaslQOP.java: Loading...
  7. shims/src/common-secure/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java: Loading...
  8. shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.java: Loading...