Review Board 1.7.22


DB based token store

Review Request #7941 - Created Nov. 8, 2012 and updated

Ashutosh Chauhan
trunk
HIVE-3255
Reviewers
hive
carl
hive
DB based token store
Includes unit test

Diff revision 2

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

1 2 3
1 2 3

  1. trunk/metastore/scripts/upgrade/derby/012-HIVE-3255.derby.sql: Loading...
  2. trunk/metastore/scripts/upgrade/derby/upgrade-0.9.0-to-0.10.0.derby.sql: Loading...
  3. trunk/metastore/scripts/upgrade/mysql/012-HIVE-3255.mysql.sql: Loading...
  4. trunk/metastore/scripts/upgrade/mysql/upgrade-0.9.0-to-0.10.0.mysql.sql: Loading...
  5. trunk/metastore/scripts/upgrade/oracle/012-HIVE-3255.oracle.sql: Loading...
  6. trunk/metastore/scripts/upgrade/oracle/upgrate-0.9.0-to-0.10.0.oracle.sql: Loading...
  7. trunk/metastore/scripts/upgrade/postgres/012-HIVE-3255.postgres.sql: Loading...
  8. trunk/metastore/scripts/upgrade/postgres/upgrade-0.9.0-to-0.10.0.postgres.sql: Loading...
  9. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: Loading...
  10. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java: Loading...
  11. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java: Loading...
  12. trunk/metastore/src/model/package.jdo: Loading...
  13. trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MDelegationToken.java: Loading...
  14. trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MMasterKey.java: Loading...
  15. trunk/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java: Loading...
  16. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DBTokenStore.java: Loading...
  17. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DelegationTokenStore.java: Loading...
  18. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java: Loading...
  19. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/MemoryTokenStore.java: Loading...
  20. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/ZooKeeperTokenStore.java: Loading...
  21. trunk/shims/src/common-secure/test/org/apache/hadoop/hive/thrift/TestDBTokenStore.java: Loading...
  22. trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.java: Loading...
trunk/metastore/scripts/upgrade/derby/012-HIVE-3255.derby.sql
New File

    
   
1
--

    
   
2
-- HIVE-3255 Storing Delegation tokens in Metastore

    
   
3
--

    
   
4

   

    
   
5
-- Table MASTER_KEYS for classes [org.apache.hadoop.hive.metastore.model.MMasterKey]

    
   
6
CREATE TABLE  MASTER_KEYS

    
   
7
(

    
   
8
    KEY_ID INTEGER NOT NULL generated always as identity (start with 1),

    
   
9
    MASTER_KEY VARCHAR(767)

    
   
10
);

    
   
11

   

    
   
12
-- Constraints for table MASTER_KEYS for class(es) [org.apache.hadoop.hive.metastore.model.MMasterKey]

    
   
13
CREATE UNIQUE INDEX MASTERKEYINDEX ON MASTER_KEYS (KEY_ID);

    
   
14

   

    
   
15
-- Table DELEGATION_TOKENS for classes [org.apache.hadoop.hive.metastore.model.MDelegationToken]

    
   
16
CREATE TABLE  DELEGATION_TOKENS

    
   
17
(

    
   
18
    TOKEN_IDENT VARCHAR(767) NOT NULL,

    
   
19
    TOKEN VARCHAR(767)

    
   
20
);

    
   
21

   

    
   
22
-- Constraints for table DELEGATION_TOKENS for class(es) [org.apache.hadoop.hive.metastore.model.MDelegationToken]

    
   
23
CREATE UNIQUE INDEX TOKENINDEX ON DELEGATION_TOKENS (TOKEN_IDENT);

    
   
24

   
trunk/metastore/scripts/upgrade/derby/upgrade-0.9.0-to-0.10.0.derby.sql
Revision 1408480 New Change
 
trunk/metastore/scripts/upgrade/mysql/012-HIVE-3255.mysql.sql
New File
 
trunk/metastore/scripts/upgrade/mysql/upgrade-0.9.0-to-0.10.0.mysql.sql
Revision 1408480 New Change
 
trunk/metastore/scripts/upgrade/oracle/012-HIVE-3255.oracle.sql
New File
 
trunk/metastore/scripts/upgrade/oracle/upgrate-0.9.0-to-0.10.0.oracle.sql
New File
 
trunk/metastore/scripts/upgrade/postgres/012-HIVE-3255.postgres.sql
New File
 
trunk/metastore/scripts/upgrade/postgres/upgrade-0.9.0-to-0.10.0.postgres.sql
Revision 1408480 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
Revision 1408480 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
Revision 1408480 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java
Revision 1408480 New Change
 
trunk/metastore/src/model/package.jdo
Revision 1408480 New Change
 
trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MDelegationToken.java
New File
 
trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MMasterKey.java
New File
 
trunk/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java
Revision 1408480 New Change
 
trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DBTokenStore.java
New File
 
trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DelegationTokenStore.java
Revision 1408480 New Change
 
trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java
Revision 1408480 New Change
 
trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/MemoryTokenStore.java
Revision 1408480 New Change
 
trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/ZooKeeperTokenStore.java
Revision 1408480 New Change
 
trunk/shims/src/common-secure/test/org/apache/hadoop/hive/thrift/TestDBTokenStore.java
New File
 
trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.java
Revision 1408480 New Change
 
  1. trunk/metastore/scripts/upgrade/derby/012-HIVE-3255.derby.sql: Loading...
  2. trunk/metastore/scripts/upgrade/derby/upgrade-0.9.0-to-0.10.0.derby.sql: Loading...
  3. trunk/metastore/scripts/upgrade/mysql/012-HIVE-3255.mysql.sql: Loading...
  4. trunk/metastore/scripts/upgrade/mysql/upgrade-0.9.0-to-0.10.0.mysql.sql: Loading...
  5. trunk/metastore/scripts/upgrade/oracle/012-HIVE-3255.oracle.sql: Loading...
  6. trunk/metastore/scripts/upgrade/oracle/upgrate-0.9.0-to-0.10.0.oracle.sql: Loading...
  7. trunk/metastore/scripts/upgrade/postgres/012-HIVE-3255.postgres.sql: Loading...
  8. trunk/metastore/scripts/upgrade/postgres/upgrade-0.9.0-to-0.10.0.postgres.sql: Loading...
  9. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: Loading...
  10. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java: Loading...
  11. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java: Loading...
  12. trunk/metastore/src/model/package.jdo: Loading...
  13. trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MDelegationToken.java: Loading...
  14. trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MMasterKey.java: Loading...
  15. trunk/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java: Loading...
  16. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DBTokenStore.java: Loading...
  17. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/DelegationTokenStore.java: Loading...
  18. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge20S.java: Loading...
  19. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/MemoryTokenStore.java: Loading...
  20. trunk/shims/src/common-secure/java/org/apache/hadoop/hive/thrift/ZooKeeperTokenStore.java: Loading...
  21. trunk/shims/src/common-secure/test/org/apache/hadoop/hive/thrift/TestDBTokenStore.java: Loading...
  22. trunk/shims/src/common/java/org/apache/hadoop/hive/thrift/HadoopThriftAuthBridge.java: Loading...