public class CLIService extends CompositeService implements ICLIService
CompositeService.CompositeServiceShutdownHook
Service.STATE
Modifier and Type | Field and Description |
---|---|
static TProtocolVersion |
SERVER_VERSION |
Constructor and Description |
---|
CLIService(HiveServer2 hiveServer2) |
addService, getServices, removeService
getHiveConf, getName, getServiceState, getStartTime, register, unregister
public static final TProtocolVersion SERVER_VERSION
public CLIService(HiveServer2 hiveServer2)
public void init(HiveConf hiveConf)
AbstractService
Service.STATE.NOTINITED
to Service.STATE.INITED
unless the
operation failed and an exception was raised.init
in interface Service
init
in class CompositeService
public org.apache.hadoop.security.UserGroupInformation getServiceUGI()
public org.apache.hadoop.security.UserGroupInformation getHttpUGI()
public void start()
AbstractService
Service.STATE.INITED
to Service.STATE.STARTED
unless the
operation failed and an exception was raised.start
in interface Service
start
in class CompositeService
public void stop()
AbstractService
stop
in interface Service
stop
in class CompositeService
@Deprecated public SessionHandle openSession(TProtocolVersion protocol, String username, String password, Map<String,String> configuration) throws HiveSQLException
openSession(TProtocolVersion, String, String, String, Map)
HiveSQLException
@Deprecated public SessionHandle openSessionWithImpersonation(TProtocolVersion protocol, String username, String password, Map<String,String> configuration, String delegationToken) throws HiveSQLException
HiveSQLException
public SessionHandle openSession(TProtocolVersion protocol, String username, String password, String ipAddress, Map<String,String> configuration) throws HiveSQLException
HiveSQLException
public SessionHandle openSessionWithImpersonation(TProtocolVersion protocol, String username, String password, String ipAddress, Map<String,String> configuration, String delegationToken) throws HiveSQLException
HiveSQLException
public SessionHandle openSession(String username, String password, Map<String,String> configuration) throws HiveSQLException
openSession
in interface ICLIService
HiveSQLException
public SessionHandle openSessionWithImpersonation(String username, String password, Map<String,String> configuration, String delegationToken) throws HiveSQLException
openSessionWithImpersonation
in interface ICLIService
HiveSQLException
public void closeSession(SessionHandle sessionHandle) throws HiveSQLException
closeSession
in interface ICLIService
HiveSQLException
public GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType getInfoType) throws HiveSQLException
getInfo
in interface ICLIService
HiveSQLException
public OperationHandle executeStatement(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay) throws HiveSQLException
executeStatement
in interface ICLIService
HiveSQLException
public OperationHandle executeStatementAsync(SessionHandle sessionHandle, String statement, Map<String,String> confOverlay) throws HiveSQLException
executeStatementAsync
in interface ICLIService
HiveSQLException
public OperationHandle getTypeInfo(SessionHandle sessionHandle) throws HiveSQLException
getTypeInfo
in interface ICLIService
HiveSQLException
public OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException
getCatalogs
in interface ICLIService
HiveSQLException
public OperationHandle getSchemas(SessionHandle sessionHandle, String catalogName, String schemaName) throws HiveSQLException
getSchemas
in interface ICLIService
HiveSQLException
public OperationHandle getTables(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, List<String> tableTypes) throws HiveSQLException
getTables
in interface ICLIService
HiveSQLException
public OperationHandle getTableTypes(SessionHandle sessionHandle) throws HiveSQLException
getTableTypes
in interface ICLIService
HiveSQLException
public OperationHandle getColumns(SessionHandle sessionHandle, String catalogName, String schemaName, String tableName, String columnName) throws HiveSQLException
getColumns
in interface ICLIService
HiveSQLException
public OperationHandle getFunctions(SessionHandle sessionHandle, String catalogName, String schemaName, String functionName) throws HiveSQLException
getFunctions
in interface ICLIService
HiveSQLException
public OperationStatus getOperationStatus(OperationHandle opHandle) throws HiveSQLException
getOperationStatus
in interface ICLIService
HiveSQLException
public void cancelOperation(OperationHandle opHandle) throws HiveSQLException
cancelOperation
in interface ICLIService
HiveSQLException
public void closeOperation(OperationHandle opHandle) throws HiveSQLException
closeOperation
in interface ICLIService
HiveSQLException
public TableSchema getResultSetMetadata(OperationHandle opHandle) throws HiveSQLException
getResultSetMetadata
in interface ICLIService
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException
fetchResults
in interface ICLIService
HiveSQLException
public RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows, FetchType fetchType) throws HiveSQLException
fetchResults
in interface ICLIService
HiveSQLException
public String getDelegationTokenFromMetaStore(String owner) throws HiveSQLException, UnsupportedOperationException, LoginException, IOException
public String getDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String owner, String renewer) throws HiveSQLException
getDelegationToken
in interface ICLIService
HiveSQLException
public void cancelDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
cancelDelegationToken
in interface ICLIService
HiveSQLException
public void renewDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String tokenStr) throws HiveSQLException
renewDelegationToken
in interface ICLIService
HiveSQLException
public SessionManager getSessionManager()
Copyright © 2017 The Apache Software Foundation. All rights reserved.