[ 
https://issues.apache.org/jira/browse/HBASE-29758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HBASE-29758:
-----------------------------------
    Labels: pull-request-available  (was: )

> Running the thrift and thrift2 help commands via the shell will throw an 
> ExitCodeException
> ------------------------------------------------------------------------------------------
>
>                 Key: HBASE-29758
>                 URL: https://issues.apache.org/jira/browse/HBASE-29758
>             Project: HBase
>          Issue Type: Improvement
>          Components: Thrift
>    Affects Versions: 3.0.0-beta-1, 2.6.4
>            Reporter: Xiao Liu
>            Assignee: Xiao Liu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.0, 3.0.0-beta-2, 2.6.5
>
>
> Running the thrift and thrift2 help commands via the shell will throw an 
> ExitCodeException
> {code:language=bash|borderStyle=solid|theme=RDark|linenumbers=true|collapse=true}
> ➜ hbase-2.6.4 ./bin/hbase thrift2 -h
> usage: Thrift [-b <arg>] [-c] [-f] [-h] [-hsha | -nonblocking |
> -threadedselector | -threadpool] [--infoport <arg>] [-k <arg>] [-m
> <arg>] [-p <arg>] [-q <arg>] [-ro] [-s <arg>] [-t <arg>] [-w
> <arg>]
> -b,--bind <arg> Address to bind the Thrift server to. [default:
> 0.0.0.0]
> -c,--compact Use the compact protocol
> -f,--framed Use framed transport
> -h,--help Print help information
> -hsha Use the THsHaServer This implies the framed
> transport.
> --infoport <arg> Port for web UI
> -k,--keepAliveSec <arg> The amount of time in secods to keep a thread
> alive when idle in TBoundedThreadPoolServer
> -m,--minWorkers <arg> The minimum number of worker threads for
> TBoundedThreadPoolServer
> -nonblocking Use the TNonblockingServer This implies the
> framed transport.
> -p,--port <arg> Port to bind to [default: 9090]
> -q,--queue <arg> The maximum number of queued requests in
> TBoundedThreadPoolServer
> -ro,--readonly Respond only to read method requests [default:
> false]
> -s,--selectors <arg> How many selector threads to use.
> -t,--readTimeout <arg> Amount of time in milliseconds before a server
> thread will timeout waiting for client to send
> data on a connected socket. Currently, only
> applies to TBoundedThreadPoolServer
> -threadedselector Use the TThreadedSelectorServer This implies
> the framed transport.
> -threadpool Use the TBoundedThreadPoolServerThis is the
> default.
> -w,--workers <arg> The maximum number of worker threads for
> TBoundedThreadPoolServer
> To start the Thrift server run 'hbase-daemon.sh start thrift2' or 'hbase
> thrift2'
> To shutdown the thrift server run 'hbase-daemon.sh stop thrift2' or send a
> kill signal to the thrift server pid
> Exception in thread "main" ExitCodeException exitCode=1:
> at 
> org.apache.hadoop.hbase.thrift2.ThriftServer.printUsageAndExit(ThriftServer.java:67)
> at 
> org.apache.hadoop.hbase.thrift.ThriftServer.processOptions(ThriftServer.java:781)
> at org.apache.hadoop.hbase.thrift.ThriftServer.run(ThriftServer.java:833)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
> at org.apache.hadoop.hbase.thrift2.ThriftServer.main(ThriftServer.java:110)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to