Review Board 1.7.22


HIVE-5403: Move loading of filesystem, ugi, metastore client to hive session

Review Request #14425 - Created Oct. 1, 2013 and updated

Vikram Dixit Kumaraswamy
trunk
HIVE-5403
Reviewers
hive
haglein
hive-git
Move loading of filesystem, ugi, metastore client to hive session.
Does not affect any unit tests but all of them exercise this code path.

Diff revision 3 (Latest)

1 2 3
1 2 3

  1. ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java: Loading...
  2. ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java: Loading...
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
Revision 0491f8b New Change
[20] 2402 lines
[+20] [+] public HiveMetaHook getHook(
2403
      };
2403
      };
2404
    return RetryingMetaStoreClient.getProxy(conf, hookLoader,
2404
    return RetryingMetaStoreClient.getProxy(conf, hookLoader,
2405
        HiveMetaStoreClient.class.getName());
2405
        HiveMetaStoreClient.class.getName());
2406
  }
2406
  }
2407

    
   
2407

   

    
   
2408
  /*

    
   
2409
   * This api just sets up a metastore client. This is used for

    
   
2410
   * pre-launching the metastore client so as to reduce latency

    
   
2411
   * within a single session.

    
   
2412
   */

    
   
2413
  public void setupMSC() throws MetaException {

    
   
2414
    getMSC();

    
   
2415
  }

    
   
2416

   
2408
  /**
2417
  /**
2409
   *
2418
   *
2410
   * @return the metastore client for the current thread
2419
   * @return the metastore client for the current thread
2411
   * @throws MetaException
2420
   * @throws MetaException
2412
   */
2421
   */
[+20] [20] 147 lines
ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
Revision f6b1491 New Change
 
  1. ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java: Loading...
  2. ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java: Loading...