Package org.apache.hadoop.hbase.thrift2
Class ThriftServer
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.thrift.ThriftServer
org.apache.hadoop.hbase.thrift2.ThriftServer
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
ThriftServer - this class starts up a Thrift server which implements the HBase API specified in
the HbaseClient.thrift IDL file.
-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.thrift.ThriftServer
conf, doAsEnabled, hbaseServiceHandler, host, httpEnabled, httpServer, httpUGI, infoServer, listenPort, metrics, pauseMonitor, processor, qop, securityEnabled, serviceUGI, tserver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options) Add options to command linesprotected HBaseServiceHandlercreateHandler(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider) protected org.apache.thrift.TProcessorprotected ThriftMetricscreateThriftMetrics(org.apache.hadoop.conf.Configuration conf) static voidStart up the Thrift2 server.protected voidparseCommandLine(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd, org.apache.hbase.thirdparty.org.apache.commons.cli.Options options) protected voidprintUsageAndExit(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options, int exitCode) Methods inherited from class org.apache.hadoop.hbase.thrift.ThriftServer
checkHttpSecurity, createExecutor, createTServlet, getBindAddress, getHttpServer, getProtocolFactory, getTHsHaServer, getTNonBlockingServer, getTserver, getTThreadedSelectorServer, getTThreadPoolServer, optionToConf, processOptions, registerFilters, run, run, setupHTTPServer, setupParamters, setupServer, startInfoServer, stopMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
log
-
-
Constructor Details
-
ThriftServer
-
-
Method Details
-
printUsageAndExit
protected void printUsageAndExit(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options, int exitCode) throws org.apache.hadoop.util.Shell.ExitCodeException - Overrides:
printUsageAndExitin classThriftServer- Throws:
org.apache.hadoop.util.Shell.ExitCodeException
-
createHandler
protected HBaseServiceHandler createHandler(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider) throws IOException - Overrides:
createHandlerin classThriftServer- Throws:
IOException
-
createThriftMetrics
- Overrides:
createThriftMetricsin classThriftServer
-
createProcessor
- Overrides:
createProcessorin classThriftServer
-
addOptions
Description copied from class:ThriftServerAdd options to command lines- Overrides:
addOptionsin classThriftServer- Parameters:
options- options
-
parseCommandLine
protected void parseCommandLine(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd, org.apache.hbase.thirdparty.org.apache.commons.cli.Options options) throws org.apache.hadoop.util.Shell.ExitCodeException - Overrides:
parseCommandLinein classThriftServer- Throws:
org.apache.hadoop.util.Shell.ExitCodeException
-
main
Start up the Thrift2 server.- Throws:
Exception
-