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