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
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options) Add options to command linesprotected HBaseServiceHandler
createHandler
(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider) protected org.apache.thrift.TProcessor
protected ThriftMetrics
createThriftMetrics
(org.apache.hadoop.conf.Configuration conf) static void
Start up the Thrift2 server.protected void
parseCommandLine
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd, org.apache.hbase.thirdparty.org.apache.commons.cli.Options options) protected void
printUsageAndExit
(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, stop
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
printUsageAndExit
in classThriftServer
- Throws:
org.apache.hadoop.util.Shell.ExitCodeException
-
createHandler
protected HBaseServiceHandler createHandler(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider) throws IOException - Overrides:
createHandler
in classThriftServer
- Throws:
IOException
-
createThriftMetrics
- Overrides:
createThriftMetrics
in classThriftServer
-
createProcessor
- Overrides:
createProcessor
in classThriftServer
-
addOptions
Description copied from class:ThriftServer
Add options to command lines- Overrides:
addOptions
in 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:
parseCommandLine
in classThriftServer
- Throws:
org.apache.hadoop.util.Shell.ExitCodeException
-
main
Start up the Thrift2 server.- Throws:
Exception
-