Review Board 1.7.22


Pass user identity in metastore connection in unsecure mode

Review Request #2975 - Created Nov. 30, 2011 and updated

Ashutosh Chauhan
HIVE-2616
Reviewers
hive
hive
Pass user identity in metastore connection in unsecure mode
All the tests in metastore dir passes. Manually tested that file on hdfs is owned by user running the client and not by user running metastore server.

Diff revision 3

This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.

1 2 3 4
1 2 3 4

  1. trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java: Loading...
  2. trunk/conf/hive-default.xml.template: Loading...
  3. trunk/metastore/if/hive_metastore.thrift: Loading...
  4. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h: Loading...
  5. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp: Loading...
  6. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp: Loading...
  7. trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java: Loading...
  8. trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php: Loading...
  9. trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py: Loading...
  10. trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote: Loading...
  11. trunk/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb: Loading...
  12. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: Loading...
  13. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: Loading...
  14. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/TUGIBasedProcessor.java: Loading...
  15. trunk/shims/ivy.xml: Loading...
  16. trunk/shims/src/0.20/java/org/apache/hadoop/hive/shims/Hadoop20Shims.java: Loading...
  17. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/shims/Hadoop20SShims.java: Loading...
  18. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java: Loading...
  19. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/client/TUGIAssumingTransport.java: Loading...
  20. trunk/shims/src/common/java/org/apache/hadoop/hive/shims/HadoopShims.java: Loading...
  21. trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/TFilterTransport.java: Loading...
  22. trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/TUGIContainingTransport.java: Loading...
trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
Revision 1215380 New Change
[20] 278 lines
[+20] [+] public class HiveConf extends Configuration {
279
    METASTORE_EVENT_LISTENERS("hive.metastore.event.listeners", ""),
279
    METASTORE_EVENT_LISTENERS("hive.metastore.event.listeners", ""),
280
    // should we do checks against the storage (usually hdfs) for operations like drop_partition
280
    // should we do checks against the storage (usually hdfs) for operations like drop_partition
281
    METASTORE_AUTHORIZATION_STORAGE_AUTH_CHECKS("hive.metastore.authorization.storage.checks", false),
281
    METASTORE_AUTHORIZATION_STORAGE_AUTH_CHECKS("hive.metastore.authorization.storage.checks", false),
282
    METASTORE_EVENT_CLEAN_FREQ("hive.metastore.event.clean.freq",0L),
282
    METASTORE_EVENT_CLEAN_FREQ("hive.metastore.event.clean.freq",0L),
283
    METASTORE_EVENT_EXPIRY_DURATION("hive.metastore.event.expiry.duration",0L),
283
    METASTORE_EVENT_EXPIRY_DURATION("hive.metastore.event.expiry.duration",0L),

    
   
284
    METASTORE_EXECUTE_SET_UGI("hive.metastore.execute.setugi", false),

    
   
285

   
284
    METASTORE_MODE("hive.metastore.local",true),
286
    METASTORE_MODE("hive.metastore.local",true),
285
    // Default parameters for creating tables
287
    // Default parameters for creating tables
286
    NEWTABLEDEFAULTPARA("hive.table.parameters.default", ""),
288
    NEWTABLEDEFAULTPARA("hive.table.parameters.default", ""),
287
    METASTORE_RAW_STORE_IMPL("hive.metastore.rawstore.impl",
289
    METASTORE_RAW_STORE_IMPL("hive.metastore.rawstore.impl",
288
        "org.apache.hadoop.hive.metastore.ObjectStore"),
290
        "org.apache.hadoop.hive.metastore.ObjectStore"),
[+20] [20] 646 lines
trunk/conf/hive-default.xml.template
Revision 1215380 New Change
 
trunk/metastore/if/hive_metastore.thrift
Revision 1215380 New Change
 
trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
Revision 1215380 New Change
 
trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
Revision 1215380 New Change
 
trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
Revision 1215380 New Change
 
trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
Revision 1215380 New Change
 
trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php
Revision 1215380 New Change
 
trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
Revision 1215380 New Change
 
trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
Revision 1215380 New Change
 
trunk/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
Revision 1215380 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
Revision 1215380 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
Revision 1215380 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/TUGIBasedProcessor.java
New File
 
trunk/shims/ivy.xml
Revision 1215380 New Change
 
trunk/shims/src/0.20/java/org/apache/hadoop/hive/shims/Hadoop20Shims.java
Revision 1215380 New Change
 
trunk/shims/src/0.20S/java/org/apache/hadoop/hive/shims/Hadoop20SShims.java
Revision 1215380 New Change
 
trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java
Revision 1215380 New Change
 
trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/client/TUGIAssumingTransport.java
New File
 
trunk/shims/src/common/java/org/apache/hadoop/hive/shims/HadoopShims.java
Revision 1215380 New Change
 
trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/TFilterTransport.java
New File
 
trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/TUGIContainingTransport.java
New File
 
  1. trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java: Loading...
  2. trunk/conf/hive-default.xml.template: Loading...
  3. trunk/metastore/if/hive_metastore.thrift: Loading...
  4. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h: Loading...
  5. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp: Loading...
  6. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp: Loading...
  7. trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java: Loading...
  8. trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php: Loading...
  9. trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py: Loading...
  10. trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote: Loading...
  11. trunk/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb: Loading...
  12. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: Loading...
  13. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: Loading...
  14. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/TUGIBasedProcessor.java: Loading...
  15. trunk/shims/ivy.xml: Loading...
  16. trunk/shims/src/0.20/java/org/apache/hadoop/hive/shims/Hadoop20Shims.java: Loading...
  17. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/shims/Hadoop20SShims.java: Loading...
  18. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java: Loading...
  19. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/client/TUGIAssumingTransport.java: Loading...
  20. trunk/shims/src/common/java/org/apache/hadoop/hive/shims/HadoopShims.java: Loading...
  21. trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/TFilterTransport.java: Loading...
  22. trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/TUGIContainingTransport.java: Loading...