public class HiveSessionImplwithUGI extends HiveSessionImpl
| Constructor and Description |
|---|
HiveSessionImplwithUGI(TProtocolVersion protocol,
String username,
String password,
HiveConf hiveConf,
String ipAddress,
String delegationToken) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acquire(boolean userAccess) |
void |
cancelDelegationToken(HiveAuthFactory authFactory,
String tokenStr) |
void |
close()
Close the file systems for the session and remove it from the FileSystem cache.
|
String |
getDelegationToken() |
String |
getDelegationToken(HiveAuthFactory authFactory,
String owner,
String renewer) |
protected HiveSession |
getSession() |
org.apache.hadoop.security.UserGroupInformation |
getSessionUgi() |
void |
renewDelegationToken(HiveAuthFactory authFactory,
String tokenStr) |
void |
setProxySession(HiveSession proxySession) |
void |
setSessionUGI(String owner) |
cancelOperation, closeExpiredOperations, closeOperation, executeStatement, executeStatementAsync, fetchResults, getCatalogs, getColumns, getFunctions, getHiveConf, getInfo, getIpAddress, getLastAccessTime, getMetaStoreClient, getNoOperationTime, getOperationLogSessionDir, getPassword, getProtocolVersion, getResultSetMetadata, getSchemas, getSessionHandle, getSessionManager, getSessionState, getTables, getTableTypes, getTypeInfo, getUsername, getUserName, isOperationLogEnabled, open, release, setIpAddress, setOperationLogSessionDir, setOperationManager, setSessionManager, setUserNamepublic static final String HS2TOKEN
public HiveSessionImplwithUGI(TProtocolVersion protocol, String username, String password, HiveConf hiveConf, String ipAddress, String delegationToken) throws HiveSQLException
HiveSQLExceptionpublic void setSessionUGI(String owner) throws HiveSQLException
HiveSQLExceptionpublic org.apache.hadoop.security.UserGroupInformation getSessionUgi()
public String getDelegationToken()
protected void acquire(boolean userAccess)
acquire in class HiveSessionImplpublic void close()
throws HiveSQLException
close in interface HiveSessionclose in class HiveSessionImplHiveSQLExceptionprotected HiveSession getSession()
getSession in class HiveSessionImplpublic void setProxySession(HiveSession proxySession)
public String getDelegationToken(HiveAuthFactory authFactory, String owner, String renewer) throws HiveSQLException
getDelegationToken in interface HiveSessiongetDelegationToken in class HiveSessionImplHiveSQLExceptionpublic void cancelDelegationToken(HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
cancelDelegationToken in interface HiveSessioncancelDelegationToken in class HiveSessionImplHiveSQLExceptionpublic void renewDelegationToken(HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
renewDelegationToken in interface HiveSessionrenewDelegationToken in class HiveSessionImplHiveSQLExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.