Database Reference
In-Depth Information
-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 seconds 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
-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 bin/hbase-daemon.sh start thrift . To shut
down the Thrift server, run bin/hbase-daemon.sh stop thrift or send a kill
signal to the Thrift server pid. For example, launch the Thrift service, listening
on port 9999 using:
[root@localhost bin]# hbase thrift start -p 9999
Otherwise, as a daemon service, use the following command:
[root@localhost bin]# ./hbase-daemon.sh start thrift -p 9999
The Thrift server provides all the operations required to work with HBase tables. The
HBase default package comes with the Thrift schema ile and an example client for
many programming languages such as C++, PHP, Perl, Protobuf, Ruby, Python, and
so on. The following is a Python example to store and retrieve the data from HBase:
#import thrift libraries
#! /usr/bin/env python
 
Search WWH ::




Custom Search