public abstract class ThriftCLIService extends AbstractService implements org.apache.hive.service.rpc.thrift.TCLIService.Iface, Runnable
Service.STATE| Modifier and Type | Field and Description |
|---|---|
protected CLIService |
cliService |
protected ThreadLocal<org.apache.thrift.server.ServerContext> |
currentServerContext |
protected static HiveAuthFactory |
hiveAuthFactory |
protected HiveConf |
hiveConf |
protected String |
hiveHost |
protected boolean |
isEmbedded |
static org.slf4j.Logger |
LOG |
protected int |
maxWorkerThreads |
protected int |
minWorkerThreads |
protected int |
portNum |
protected InetAddress |
serverIPAddress |
protected long |
workerKeepAliveTime |
| Constructor and Description |
|---|
ThriftCLIService(CLIService service,
String serviceName) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hive.service.rpc.thrift.TCancelDelegationTokenResp |
CancelDelegationToken(org.apache.hive.service.rpc.thrift.TCancelDelegationTokenReq req) |
org.apache.hive.service.rpc.thrift.TCancelOperationResp |
CancelOperation(org.apache.hive.service.rpc.thrift.TCancelOperationReq req) |
org.apache.hive.service.rpc.thrift.TCloseOperationResp |
CloseOperation(org.apache.hive.service.rpc.thrift.TCloseOperationReq req) |
org.apache.hive.service.rpc.thrift.TCloseSessionResp |
CloseSession(org.apache.hive.service.rpc.thrift.TCloseSessionReq req) |
org.apache.hive.service.rpc.thrift.TExecuteStatementResp |
ExecuteStatement(org.apache.hive.service.rpc.thrift.TExecuteStatementReq req) |
org.apache.hive.service.rpc.thrift.TFetchResultsResp |
FetchResults(org.apache.hive.service.rpc.thrift.TFetchResultsReq req) |
org.apache.hive.service.rpc.thrift.TGetCatalogsResp |
GetCatalogs(org.apache.hive.service.rpc.thrift.TGetCatalogsReq req) |
org.apache.hive.service.rpc.thrift.TGetColumnsResp |
GetColumns(org.apache.hive.service.rpc.thrift.TGetColumnsReq req) |
org.apache.hive.service.rpc.thrift.TGetCrossReferenceResp |
GetCrossReference(org.apache.hive.service.rpc.thrift.TGetCrossReferenceReq req) |
org.apache.hive.service.rpc.thrift.TGetDelegationTokenResp |
GetDelegationToken(org.apache.hive.service.rpc.thrift.TGetDelegationTokenReq req) |
org.apache.hive.service.rpc.thrift.TGetFunctionsResp |
GetFunctions(org.apache.hive.service.rpc.thrift.TGetFunctionsReq req) |
org.apache.hive.service.rpc.thrift.TGetInfoResp |
GetInfo(org.apache.hive.service.rpc.thrift.TGetInfoReq req) |
org.apache.hive.service.rpc.thrift.TGetOperationStatusResp |
GetOperationStatus(org.apache.hive.service.rpc.thrift.TGetOperationStatusReq req) |
int |
getPortNumber() |
org.apache.hive.service.rpc.thrift.TGetPrimaryKeysResp |
GetPrimaryKeys(org.apache.hive.service.rpc.thrift.TGetPrimaryKeysReq req) |
org.apache.hive.service.rpc.thrift.TGetQueryIdResp |
GetQueryId(org.apache.hive.service.rpc.thrift.TGetQueryIdReq req) |
org.apache.hive.service.rpc.thrift.TGetResultSetMetadataResp |
GetResultSetMetadata(org.apache.hive.service.rpc.thrift.TGetResultSetMetadataReq req) |
org.apache.hive.service.rpc.thrift.TGetSchemasResp |
GetSchemas(org.apache.hive.service.rpc.thrift.TGetSchemasReq req) |
InetAddress |
getServerIPAddress() |
org.apache.hive.service.rpc.thrift.TGetTablesResp |
GetTables(org.apache.hive.service.rpc.thrift.TGetTablesReq req) |
org.apache.hive.service.rpc.thrift.TGetTableTypesResp |
GetTableTypes(org.apache.hive.service.rpc.thrift.TGetTableTypesReq req) |
org.apache.hive.service.rpc.thrift.TGetTypeInfoResp |
GetTypeInfo(org.apache.hive.service.rpc.thrift.TGetTypeInfoReq req) |
void |
init(HiveConf hiveConf)
Initialize the service.
|
protected abstract void |
initServer() |
org.apache.hive.service.rpc.thrift.TOpenSessionResp |
OpenSession(org.apache.hive.service.rpc.thrift.TOpenSessionReq req) |
org.apache.hive.service.rpc.thrift.TRenewDelegationTokenResp |
RenewDelegationToken(org.apache.hive.service.rpc.thrift.TRenewDelegationTokenReq req) |
abstract void |
run() |
org.apache.hive.service.rpc.thrift.TSetClientInfoResp |
SetClientInfo(org.apache.hive.service.rpc.thrift.TSetClientInfoReq req) |
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
protected abstract void |
stopServer() |
getHiveConf, getName, getServiceState, getStartTime, register, setHiveConf, unregisterpublic static final org.slf4j.Logger LOG
protected CLIService cliService
protected static HiveAuthFactory hiveAuthFactory
protected int portNum
protected InetAddress serverIPAddress
protected String hiveHost
protected boolean isEmbedded
protected HiveConf hiveConf
protected int minWorkerThreads
protected int maxWorkerThreads
protected long workerKeepAliveTime
protected ThreadLocal<org.apache.thrift.server.ServerContext> currentServerContext
public ThriftCLIService(CLIService service, String serviceName)
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 AbstractServiceprotected abstract void initServer()
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 AbstractServiceprotected abstract void stopServer()
public void stop()
AbstractServicestop in interface Servicestop in class AbstractServicepublic int getPortNumber()
public InetAddress getServerIPAddress()
public org.apache.hive.service.rpc.thrift.TGetDelegationTokenResp GetDelegationToken(org.apache.hive.service.rpc.thrift.TGetDelegationTokenReq req)
throws org.apache.thrift.TException
GetDelegationToken in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TCancelDelegationTokenResp CancelDelegationToken(org.apache.hive.service.rpc.thrift.TCancelDelegationTokenReq req)
throws org.apache.thrift.TException
CancelDelegationToken in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TRenewDelegationTokenResp RenewDelegationToken(org.apache.hive.service.rpc.thrift.TRenewDelegationTokenReq req)
throws org.apache.thrift.TException
RenewDelegationToken in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TOpenSessionResp OpenSession(org.apache.hive.service.rpc.thrift.TOpenSessionReq req)
throws org.apache.thrift.TException
OpenSession in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TSetClientInfoResp SetClientInfo(org.apache.hive.service.rpc.thrift.TSetClientInfoReq req)
throws org.apache.thrift.TException
SetClientInfo in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TCloseSessionResp CloseSession(org.apache.hive.service.rpc.thrift.TCloseSessionReq req)
throws org.apache.thrift.TException
CloseSession in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetInfoResp GetInfo(org.apache.hive.service.rpc.thrift.TGetInfoReq req)
throws org.apache.thrift.TException
GetInfo in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TExecuteStatementResp ExecuteStatement(org.apache.hive.service.rpc.thrift.TExecuteStatementReq req)
throws org.apache.thrift.TException
ExecuteStatement in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetTypeInfoResp GetTypeInfo(org.apache.hive.service.rpc.thrift.TGetTypeInfoReq req)
throws org.apache.thrift.TException
GetTypeInfo in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetCatalogsResp GetCatalogs(org.apache.hive.service.rpc.thrift.TGetCatalogsReq req)
throws org.apache.thrift.TException
GetCatalogs in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetSchemasResp GetSchemas(org.apache.hive.service.rpc.thrift.TGetSchemasReq req)
throws org.apache.thrift.TException
GetSchemas in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetTablesResp GetTables(org.apache.hive.service.rpc.thrift.TGetTablesReq req)
throws org.apache.thrift.TException
GetTables in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetTableTypesResp GetTableTypes(org.apache.hive.service.rpc.thrift.TGetTableTypesReq req)
throws org.apache.thrift.TException
GetTableTypes in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetColumnsResp GetColumns(org.apache.hive.service.rpc.thrift.TGetColumnsReq req)
throws org.apache.thrift.TException
GetColumns in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetFunctionsResp GetFunctions(org.apache.hive.service.rpc.thrift.TGetFunctionsReq req)
throws org.apache.thrift.TException
GetFunctions in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetOperationStatusResp GetOperationStatus(org.apache.hive.service.rpc.thrift.TGetOperationStatusReq req)
throws org.apache.thrift.TException
GetOperationStatus in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TCancelOperationResp CancelOperation(org.apache.hive.service.rpc.thrift.TCancelOperationReq req)
throws org.apache.thrift.TException
CancelOperation in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TCloseOperationResp CloseOperation(org.apache.hive.service.rpc.thrift.TCloseOperationReq req)
throws org.apache.thrift.TException
CloseOperation in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetResultSetMetadataResp GetResultSetMetadata(org.apache.hive.service.rpc.thrift.TGetResultSetMetadataReq req)
throws org.apache.thrift.TException
GetResultSetMetadata in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TFetchResultsResp FetchResults(org.apache.hive.service.rpc.thrift.TFetchResultsReq req)
throws org.apache.thrift.TException
FetchResults in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetPrimaryKeysResp GetPrimaryKeys(org.apache.hive.service.rpc.thrift.TGetPrimaryKeysReq req)
throws org.apache.thrift.TException
GetPrimaryKeys in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetCrossReferenceResp GetCrossReference(org.apache.hive.service.rpc.thrift.TGetCrossReferenceReq req)
throws org.apache.thrift.TException
GetCrossReference in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionpublic org.apache.hive.service.rpc.thrift.TGetQueryIdResp GetQueryId(org.apache.hive.service.rpc.thrift.TGetQueryIdReq req)
throws org.apache.thrift.TException
GetQueryId in interface org.apache.hive.service.rpc.thrift.TCLIService.Ifaceorg.apache.thrift.TExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.