public class TezSessionPoolManager extends TezSessionPoolSession.AbstractTriggerValidator implements TezSessionPoolSession.Manager
| Modifier | Constructor and Description |
|---|---|
protected |
TezSessionPoolManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeAndReopenExpiredSession(org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession oldSession)
Closes a running (expired) pool session and reopens it.
|
static void |
closeIfNotDefault(TezSessionState tezSessionState,
boolean keepTmpDir) |
void |
closeNonDefaultSessions() |
protected org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession |
createSession(String sessionId,
HiveConf conf) |
void |
destroy(TezSessionState tezSessionState)
This is called only in extreme cases where even our retry of submit fails.
|
org.apache.hadoop.hive.ql.exec.tez.SessionExpirationTracker |
getExpirationTracker() |
static TezSessionPoolManager |
getInstance()
Note: this is not thread-safe.
|
TezSessionState |
getSession(TezSessionState session,
HiveConf conf,
boolean doOpen,
boolean llap) |
void |
initTriggers(HiveConf conf) |
void |
registerOpenSession(org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession session)
Called by TezSessionPoolSession when opened.
|
TezSessionState |
reopen(TezSessionState sessionState)
Reopens the session that was found to not be running.
|
void |
returnAfterUse(org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession session) |
void |
setupNonPool(HiveConf conf) |
void |
setupPool(HiveConf conf) |
void |
startPool(HiveConf conf,
org.apache.hadoop.hive.metastore.api.WMFullResourcePlan resourcePlan) |
void |
stop() |
void |
unregisterOpenSession(org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession session)
Called by TezSessionPoolSession when closed.
|
void |
updateTriggers(org.apache.hadoop.hive.metastore.api.WMFullResourcePlan appliedRp) |
public static TezSessionPoolManager getInstance()
public void startPool(HiveConf conf, org.apache.hadoop.hive.metastore.api.WMFullResourcePlan resourcePlan) throws Exception
Exceptionpublic void setupNonPool(HiveConf conf)
public void initTriggers(HiveConf conf)
public void returnAfterUse(org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession session)
throws Exception
returnAfterUse in interface TezSessionPoolSession.ManagerExceptionpublic static void closeIfNotDefault(TezSessionState tezSessionState, boolean keepTmpDir) throws Exception
Exceptionpublic void destroy(TezSessionState tezSessionState) throws Exception
destroy in interface TezSessionPoolSession.ManagertezSessionState - the session to be closedExceptionprotected org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession createSession(String sessionId, HiveConf conf)
public TezSessionState getSession(TezSessionState session, HiveConf conf, boolean doOpen, boolean llap) throws Exception
Exceptionpublic TezSessionState reopen(TezSessionState sessionState) throws Exception
reopen in interface TezSessionPoolSession.ManagerExceptionpublic void closeAndReopenExpiredSession(org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession oldSession)
throws Exception
Exceptionpublic void registerOpenSession(org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession session)
registerOpenSession in interface TezSessionPoolSession.Managerpublic void updateTriggers(org.apache.hadoop.hive.metastore.api.WMFullResourcePlan appliedRp)
public void unregisterOpenSession(org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession session)
unregisterOpenSession in interface TezSessionPoolSession.Managerpublic org.apache.hadoop.hive.ql.exec.tez.SessionExpirationTracker getExpirationTracker()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.