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 2

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/metastore/if/hive_metastore.thrift: Loading...
  3. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h: Loading...
  4. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp: Loading...
  5. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp: Loading...
  6. trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java: Loading...
  7. trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php: Loading...
  8. trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py: Loading...
  9. trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote: Loading...
  10. trunk/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb: Loading...
  11. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: Loading...
  12. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: Loading...
  13. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/TUGIBasedProcessor.java: Loading...
  14. trunk/shims/ivy.xml: Loading...
  15. trunk/shims/src/0.20/java/org/apache/hadoop/hive/shims/Hadoop20Shims.java: Loading...
  16. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/shims/Hadoop20SShims.java: Loading...
  17. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java: Loading...
  18. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/TUGIAssumingTransport.java: Loading...
  19. trunk/shims/src/common/java/org/apache/hadoop/hive/shims/HadoopShims.java: Loading...
  20. trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.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 1209772 New Change
[20] 231 lines
[+20] [+] public class HiveConf extends Configuration {
232
    METASTORE_EVENT_LISTENERS("hive.metastore.event.listeners", ""),
232
    METASTORE_EVENT_LISTENERS("hive.metastore.event.listeners", ""),
233
    // should we do checks against the storage (usually hdfs) for operations like drop_partition
233
    // should we do checks against the storage (usually hdfs) for operations like drop_partition
234
    METASTORE_AUTHORIZATION_STORAGE_AUTH_CHECKS("hive.metastore.authorization.storage.checks", false),
234
    METASTORE_AUTHORIZATION_STORAGE_AUTH_CHECKS("hive.metastore.authorization.storage.checks", false),
235
    METASTORE_EVENT_CLEAN_FREQ("hive.metastore.event.clean.freq",0L),
235
    METASTORE_EVENT_CLEAN_FREQ("hive.metastore.event.clean.freq",0L),
236
    METASTORE_EVENT_EXPIRY_DURATION("hive.metastore.event.expiry.duration",0L),
236
    METASTORE_EVENT_EXPIRY_DURATION("hive.metastore.event.expiry.duration",0L),

    
   
237
    METASTORE_CLIENT_CALL_SET_UGI("hive.metastore.client.call.setugi", true),

    
   
238

   
237
    METASTORE_MODE("hive.metastore.local",true),
239
    METASTORE_MODE("hive.metastore.local",true),
238
    // Default parameters for creating tables
240
    // Default parameters for creating tables
239
    NEWTABLEDEFAULTPARA("hive.table.parameters.default", ""),
241
    NEWTABLEDEFAULTPARA("hive.table.parameters.default", ""),
240
    METASTORE_RAW_STORE_IMPL("hive.metastore.rawstore.impl",
242
    METASTORE_RAW_STORE_IMPL("hive.metastore.rawstore.impl",
241
        "org.apache.hadoop.hive.metastore.ObjectStore"),
243
        "org.apache.hadoop.hive.metastore.ObjectStore"),
[+20] [20] 587 lines
trunk/metastore/if/hive_metastore.thrift
Revision 1209772 New Change
 
trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
Revision 1209772 New Change
 
trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
Revision 1209772 New Change
 
trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
Revision 1209772 New Change
 
trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
Revision 1209772 New Change
 
trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php
Revision 1209772 New Change
 
trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
Revision 1209772 New Change
 
trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
Revision 1209772 New Change
 
trunk/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
Revision 1209772 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
Revision 1209772 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
Revision 1209772 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/TUGIBasedProcessor.java
New File
 
trunk/shims/ivy.xml
Revision 1209772 New Change
 
trunk/shims/src/0.20/java/org/apache/hadoop/hive/shims/Hadoop20Shims.java
Revision 1209772 New Change
 
trunk/shims/src/0.20S/java/org/apache/hadoop/hive/shims/Hadoop20SShims.java
Revision 1209772 New Change
 
trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java
Revision 1209772 New Change
 
trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/TUGIAssumingTransport.java
New File
 
trunk/shims/src/common/java/org/apache/hadoop/hive/shims/HadoopShims.java
Revision 1209772 New Change
 
trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.java
Revision 1209772 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/metastore/if/hive_metastore.thrift: Loading...
  3. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h: Loading...
  4. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp: Loading...
  5. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp: Loading...
  6. trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java: Loading...
  7. trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php: Loading...
  8. trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py: Loading...
  9. trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote: Loading...
  10. trunk/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb: Loading...
  11. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: Loading...
  12. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: Loading...
  13. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/TUGIBasedProcessor.java: Loading...
  14. trunk/shims/ivy.xml: Loading...
  15. trunk/shims/src/0.20/java/org/apache/hadoop/hive/shims/Hadoop20Shims.java: Loading...
  16. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/shims/Hadoop20SShims.java: Loading...
  17. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java: Loading...
  18. trunk/shims/src/0.20S/java/org/apache/hadoop/hive/thrift/TUGIAssumingTransport.java: Loading...
  19. trunk/shims/src/common/java/org/apache/hadoop/hive/shims/HadoopShims.java: Loading...
  20. trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.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...