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 555343ebffb9dcd5e58d5b99ce9ca52904f68ecf New Change
[20] 724 lines
[+20] [+] public class HiveConf extends Configuration {
725
    HIVE_SERVER2_THRIFT_MIN_WORKER_THREADS("hive.server2.thrift.min.worker.threads", 5),
725
    HIVE_SERVER2_THRIFT_MIN_WORKER_THREADS("hive.server2.thrift.min.worker.threads", 5),
726
    HIVE_SERVER2_THRIFT_MAX_WORKER_THREADS("hive.server2.thrift.max.worker.threads", 100),
726
    HIVE_SERVER2_THRIFT_MAX_WORKER_THREADS("hive.server2.thrift.max.worker.threads", 100),
727

    
   
727

   
728
    HIVE_SERVER2_THRIFT_PORT("hive.server2.thrift.port", 10000),
728
    HIVE_SERVER2_THRIFT_PORT("hive.server2.thrift.port", 10000),
729
    HIVE_SERVER2_THRIFT_BIND_HOST("hive.server2.thrift.bind.host", ""),
729
    HIVE_SERVER2_THRIFT_BIND_HOST("hive.server2.thrift.bind.host", ""),

    
   
730
    HIVE_SERVER2_THRIFT_SASL_QOP("hive.server2.thrift.sasl.qop", "auth"),
730

    
   
731

   
731

    
   
732

   
732
    // HiveServer2 auth configuration
733
    // HiveServer2 auth configuration
733
    HIVE_SERVER2_AUTHENTICATION("hive.server2.authentication", "NONE"),
734
    HIVE_SERVER2_AUTHENTICATION("hive.server2.authentication", "NONE"),
734
    HIVE_SERVER2_KERBEROS_KEYTAB("hive.server2.authentication.kerberos.keytab", ""),
735
    HIVE_SERVER2_KERBEROS_KEYTAB("hive.server2.authentication.kerberos.keytab", ""),
[+20] [20] 516 lines
conf/hive-default.xml.template
Revision f01e715e4de95b4011210143f7d3add2d8a4d432 New Change
 
jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
Revision 00f43511b478c687b7811fc8ad66af2b507a3626 New Change
 
metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
Revision cde58c25991641573453217da71a7ac1acf6adfd New Change
 
metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
Revision cef50f40ccb047a8135f704b2997968a2cf477b8 New Change
 
metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
Revision 88151a1d48b12cf3a8346ae94b6d1a182a331992 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 1df6993cb9aac1bb195667b3123faee27d657c0a New Change
 
shims/src/common-secure/test/org/apache/hadoop/hive/thrift/TestHadoop20SAuthBridge.java
Revision 3e850ec3991cbb2d4343969ba8fe9df4a7d137b5 New Change
 
shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.java
Revision ab7f5c0eb5345e68e3f223c9dfed8414de946661 New Change
 
  1. common/src/java/org/apache/hadoop/hive/conf/HiveConf.java: Loading...
  2. conf/hive-default.xml.template: Loading...
  3. jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java: Loading...
  4. metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: Loading...
  5. metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: Loading...
  6. metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java: Loading...
  7. service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java: Loading...
  8. service/src/java/org/apache/hive/service/auth/KerberosSaslHelper.java: Loading...
  9. service/src/java/org/apache/hive/service/auth/SaslQOP.java: Loading...
  10. shims/src/common-secure/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java: Loading...
  11. shims/src/common-secure/test/org/apache/hadoop/hive/thrift/TestHadoop20SAuthBridge.java: Loading...
  12. shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.java: Loading...