public class HiveSessionImplwithUGI extends HiveSessionImpl
| Constructor and Description |
|---|
HiveSessionImplwithUGI(SessionHandle sessionHandle,
org.apache.hive.service.rpc.thrift.TProtocolVersion protocol,
String username,
String password,
HiveConf hiveConf,
String ipAddress,
String delegationToken,
List<String> forwardedAddresses) |
| Modifier and Type | Method and Description |
|---|---|
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) |
IMetaStoreClient |
getMetaStoreClient() |
protected HiveSession |
getSession() |
org.apache.hadoop.security.UserGroupInformation |
getSessionUgi() |
void |
renewDelegationToken(HiveAuthFactory authFactory,
String tokenStr) |
void |
setProxySession(HiveSession proxySession) |
void |
setSessionUGI(String owner) |
acquire, cancelOperation, closeExpiredOperations, closeOperation, executeStatement, executeStatement, executeStatementAsync, executeStatementAsync, fetchResults, getCatalogs, getColumns, getCreationTime, getCrossReference, getForwardedAddresses, getFunctions, getHiveConf, getInfo, getIpAddress, getLastAccessTime, getNoOperationTime, getOpenOperationCount, getOperationLogSessionDir, getPassword, getPrimaryKeys, getProtocolVersion, getResultSetMetadata, getSchemas, getSessionConf, getSessionHandle, getSessionHive, getSessionManager, getSessionState, getTables, getTableTypes, getTypeInfo, getUserName, isOperationLogEnabled, open, release, setApplicationName, setForwardedAddresses, setIpAddress, setOperationLogSessionDir, setOperationManager, setSessionManager, setUserName, submitBackgroundOperationpublic static final String HS2TOKEN
public HiveSessionImplwithUGI(SessionHandle sessionHandle, org.apache.hive.service.rpc.thrift.TProtocolVersion protocol, String username, String password, HiveConf hiveConf, String ipAddress, String delegationToken, List<String> forwardedAddresses) throws HiveSQLException
HiveSQLExceptionpublic void setSessionUGI(String owner) throws HiveSQLException
HiveSQLExceptionpublic org.apache.hadoop.security.UserGroupInformation getSessionUgi()
public String getDelegationToken()
public void close()
throws HiveSQLException
close in interface HiveSessionclose in class HiveSessionImplHiveSQLExceptionpublic IMetaStoreClient getMetaStoreClient() throws HiveSQLException
getMetaStoreClient in interface HiveSessiongetMetaStoreClient 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 © 2019 The Apache Software Foundation. All Rights Reserved.