public class TezSessionState extends Object
Constructor and Description |
---|
TezSessionState(DagUtils utils)
Constructor.
|
TezSessionState(String sessionId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanupScratchDir() |
void |
close(boolean keepTmpDir)
Close a tez session.
|
org.apache.hadoop.yarn.api.records.LocalResource |
getAppJarLr() |
HiveConf |
getConf() |
boolean |
getDoAsEnabled() |
List<org.apache.hadoop.yarn.api.records.LocalResource> |
getLocalizedResources() |
String |
getQueueName() |
org.apache.tez.client.TezClient |
getSession() |
String |
getSessionId() |
org.apache.hadoop.fs.Path |
getTezScratchDir() |
String |
getUser() |
boolean |
hasResources(String[] localAmResources) |
boolean |
isDefault() |
boolean |
isOpen()
Returns whether a session has been established
|
static String |
makeSessionId()
Get all open sessions.
|
void |
open(HiveConf conf) |
void |
open(HiveConf conf,
String[] additionalFiles)
Creates a tez session.
|
void |
refreshLocalResourcesFromConf(HiveConf conf) |
void |
setDefault() |
void |
setQueueName(String queueName) |
public TezSessionState(DagUtils utils)
public TezSessionState(String sessionId)
public boolean isOpen()
public static String makeSessionId()
public void open(HiveConf conf) throws IOException, LoginException, URISyntaxException, org.apache.tez.dag.api.TezException
IOException
LoginException
URISyntaxException
org.apache.tez.dag.api.TezException
public void open(HiveConf conf, String[] additionalFiles) throws IOException, LoginException, IllegalArgumentException, URISyntaxException, org.apache.tez.dag.api.TezException
IOException
URISyntaxException
LoginException
org.apache.tez.dag.api.TezException
IllegalArgumentException
public void refreshLocalResourcesFromConf(HiveConf conf) throws IOException, LoginException, IllegalArgumentException, URISyntaxException, org.apache.tez.dag.api.TezException
IOException
LoginException
IllegalArgumentException
URISyntaxException
org.apache.tez.dag.api.TezException
public boolean hasResources(String[] localAmResources)
public void close(boolean keepTmpDir) throws org.apache.tez.dag.api.TezException, IOException
keepTmpDir
- whether or not to remove the scratch dir at the same time.IOException
org.apache.tez.dag.api.TezException
public void cleanupScratchDir() throws IOException
IOException
public String getSessionId()
public org.apache.tez.client.TezClient getSession()
public org.apache.hadoop.fs.Path getTezScratchDir()
public org.apache.hadoop.yarn.api.records.LocalResource getAppJarLr()
public void setQueueName(String queueName)
public String getQueueName()
public void setDefault()
public boolean isDefault()
public HiveConf getConf()
public List<org.apache.hadoop.yarn.api.records.LocalResource> getLocalizedResources()
public String getUser()
public boolean getDoAsEnabled()
Copyright © 2017 The Apache Software Foundation. All rights reserved.