|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.exec.tez.TezSessionState
public class TezSessionState
Holds session state related to Tez
Constructor Summary | |
---|---|
TezSessionState(DagUtils utils)
Constructor. |
|
TezSessionState(String sessionId)
Constructor. |
Method Summary | |
---|---|
void |
cleanupScratchDir()
|
void |
close(boolean keepTmpDir)
Close a tez session. |
org.apache.hadoop.yarn.api.records.LocalResource |
getAppJarLr()
|
HiveConf |
getConf()
|
List<org.apache.hadoop.yarn.api.records.LocalResource> |
getLocalizedResources()
|
static List<TezSessionState> |
getOpenSessions()
Get all open sessions. |
String |
getQueueName()
|
org.apache.tez.client.TezSession |
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 |
List<org.apache.hadoop.yarn.api.records.LocalResource> |
localizeAdditionalFiles(String[] additionalFiles)
|
static String |
makeSessionId()
|
void |
open(HiveConf conf)
|
void |
open(HiveConf conf,
String[] additionalFiles)
Creates a tez session. |
void |
setDefault()
|
void |
setQueueName(String queueName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TezSessionState(DagUtils utils)
public TezSessionState(String sessionId)
Method Detail |
---|
public boolean isOpen()
public static List<TezSessionState> getOpenSessions()
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 List<org.apache.hadoop.yarn.api.records.LocalResource> localizeAdditionalFiles(String[] additionalFiles) throws IOException, LoginException
IOException
LoginException
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.TezSession 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |