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, setUserName
public static final String HS2TOKEN
public HiveSessionImplwithUGI(TProtocolVersion protocol, String username, String password, HiveConf hiveConf, String ipAddress, String delegationToken) throws HiveSQLException
HiveSQLException
public void setSessionUGI(String owner) throws HiveSQLException
HiveSQLException
public org.apache.hadoop.security.UserGroupInformation getSessionUgi()
public String getDelegationToken()
protected void acquire(boolean userAccess)
acquire
in class HiveSessionImpl
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)
public String getDelegationToken(HiveAuthFactory authFactory, String owner, String renewer) throws HiveSQLException
getDelegationToken
in interface HiveSession
getDelegationToken
in class HiveSessionImpl
HiveSQLException
public void cancelDelegationToken(HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
cancelDelegationToken
in interface HiveSession
cancelDelegationToken
in class HiveSessionImpl
HiveSQLException
public void renewDelegationToken(HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
renewDelegationToken
in interface HiveSession
renewDelegationToken
in class HiveSessionImpl
HiveSQLException
Copyright © 2017 The Apache Software Foundation. All rights reserved.