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, setUserName
public 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
HiveSQLException
public void setSessionUGI(java.lang.String owner) throws HiveSQLException
HiveSQLException
public UserGroupInformation getSessionUgi()
public java.lang.String getDelegationToken()
protected void acquire() throws HiveSQLException
acquire
in class HiveSessionImpl
HiveSQLException
public void close() throws HiveSQLException
close
in interface HiveSession
close
in class HiveSessionImpl
HiveSQLException
protected HiveSession getSession()
getSession
in class HiveSessionImpl
public void setProxySession(HiveSession proxySession)
Copyright © 2012 The Apache Software Foundation