public class HiveSessionImplwithUGI extends HiveSessionImpl
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HS2TOKEN |
| Constructor and Description |
|---|
HiveSessionImplwithUGI(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> sessionConf,
java.lang.String delegationToken) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acquire() |
void |
close()
close the file systems for the session
cancel the session's delegation token and close the metastore connection
|
java.lang.String |
getDelegationToken() |
protected HiveSession |
getSession() |
UserGroupInformation |
getSessionUgi() |
void |
setProxySession(HiveSession proxySession) |
void |
setSessionUGI(java.lang.String owner) |
cancelOperation, closeOperation, executeStatement, executeStatementAsync, fetchResults, fetchResults, getCatalogs, getColumns, getFunctions, getHiveConf, getInfo, getMetaStoreClient, getPassword, getResultSetMetadata, getSchemas, getSessionHandle, getSessionManager, getSessionState, getTables, getTableTypes, getTypeInfo, getUsername, getUserName, release, setOperationManager, setSessionManager, setUserNamepublic static final java.lang.String HS2TOKEN
public HiveSessionImplwithUGI(java.lang.String username,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.String> sessionConf,
java.lang.String delegationToken)
throws HiveSQLException
HiveSQLExceptionpublic void setSessionUGI(java.lang.String owner)
throws HiveSQLException
HiveSQLExceptionpublic UserGroupInformation getSessionUgi()
public java.lang.String getDelegationToken()
protected void acquire()
throws HiveSQLException
acquire in class HiveSessionImplHiveSQLExceptionpublic void close()
throws HiveSQLException
close in interface HiveSessionclose in class HiveSessionImplHiveSQLExceptionprotected HiveSession getSession()
getSession in class HiveSessionImplpublic void setProxySession(HiveSession proxySession)
Copyright © 2012 The Apache Software Foundation