public class WmTezSession extends TezSessionState implements AmPluginNode
| Modifier and Type | Class and Description |
|---|---|
static class |
TezSessionPoolSession.AbstractTriggerValidator |
static interface |
TezSessionPoolSession.Manager |
TezSessionState.HiveResourcesAmPluginNode.AmPluginInfoLLAP_SERVICE, LOG| Constructor and Description |
|---|
WmTezSession(String sessionId,
WorkloadManager parent,
org.apache.hadoop.hive.ql.exec.tez.SessionExpirationTracker expiration,
HiveConf conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
boolean |
equals(Object obj) |
String |
getAllocationState() |
AmPluginNode.AmPluginInfo |
getAmPluginInfo(Ref<Integer> version) |
double |
getClusterFraction() |
String |
getPoolName() |
String |
getQueryId() |
void |
handleUpdateError(int endpointVersion) |
boolean |
hasClusterFraction() |
int |
hashCode() |
protected void |
openInternal(String[] additionalFiles,
boolean isAsync,
SessionState.LogHelper console,
TezSessionState.HiveResources resources) |
TezSessionState |
reopen() |
void |
returnToSessionManager() |
void |
setQueryId(String queryId) |
String |
toString() |
boolean |
tryExpire(boolean isAsync)
Tries to expire and restart the session.
|
boolean |
tryUse(boolean ignoreExpiration)
Tries to use this session.
|
void |
updateAmEndpointInfo(TezAmInstance si,
int ephSeqVersion) |
com.google.common.util.concurrent.ListenableFuture<WmTezSession> |
waitForAmRegistryAsync(int timeoutMs,
ScheduledExecutorService timeoutPool) |
beginOpen, cleanupDagResources, cleanupScratchDir, endOpen, ensureLocalResources, extractHiveResources, getAppJarLr, getConf, getDoAsEnabled, getKillQuery, getLocalizedResources, getQueueName, getSession, getSessionId, getUser, getWmContext, isDefault, isOpen, isOpening, makeSessionId, markFree, markInUse, open, open, open, replaceHiveResources, setDefault, setKillQuery, setQueueName, setWmContextpublic WmTezSession(String sessionId, WorkloadManager parent, org.apache.hadoop.hive.ql.exec.tez.SessionExpirationTracker expiration, HiveConf conf)
public com.google.common.util.concurrent.ListenableFuture<WmTezSession> waitForAmRegistryAsync(int timeoutMs, ScheduledExecutorService timeoutPool)
public void updateAmEndpointInfo(TezAmInstance si, int ephSeqVersion)
public AmPluginNode.AmPluginInfo getAmPluginInfo(Ref<Integer> version)
getAmPluginInfo in interface AmPluginNodepublic String getPoolName()
public boolean hasClusterFraction()
public double getClusterFraction()
public String getAllocationState()
public void handleUpdateError(int endpointVersion)
public void setQueryId(String queryId)
public String getQueryId()
public String toString()
protected void openInternal(String[] additionalFiles, boolean isAsync, SessionState.LogHelper console, TezSessionState.HiveResources resources) throws IOException, LoginException, URISyntaxException, org.apache.tez.dag.api.TezException
openInternal in class TezSessionStateIOExceptionLoginExceptionURISyntaxExceptionorg.apache.tez.dag.api.TezExceptionpublic boolean tryUse(boolean ignoreExpiration)
public boolean tryExpire(boolean isAsync)
throws Exception
isAsync - Whether the restart should happen asynchronously.Exceptionpublic void returnToSessionManager()
throws Exception
returnToSessionManager in class TezSessionStateExceptionpublic TezSessionState reopen() throws Exception
reopen in class TezSessionStateExceptionpublic void destroy()
throws Exception
destroy in class TezSessionStateExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.