Database Reference
In-Depth Information
Installation
Download a stable release from an Apache Download Mirror and unpack it on your local
filesystem. For example:
% tar xzf hbase- x.y.z .tar.gz
As with Hadoop, you first need to tell HBase where Java is located on your system. If you
have the JAVA_HOME environment variable set to point to a suitable Java installation, then
that will be used, and you don't have to configure anything further. Otherwise, you can set
the Java installation that HBase uses by editing HBase's conf/hbase-env.sh file and specify-
ing the JAVA_HOME variable (see Appendix A for some examples).
For convenience, add the HBase binary directory to your command-line path. For example:
% export HBASE_HOME=~/sw/hbase- x.y.z
% export PATH=$PATH:$HBASE_HOME/bin
To get the list of HBase options, use the following:
% hbase
Options:
--config DIR Configuration direction to use. Default: ./conf
--hosts HOSTS Override the list in 'regionservers' file
Commands:
Some commands take arguments. Pass no args or -h for usage.
shell Run the HBase shell
hbck Run the hbase 'fsck' tool
hlog Write-ahead-log analyzer
hfile Store file analyzer
zkcli Run the ZooKeeper shell
upgrade Upgrade hbase
master Run an HBase HMaster node
regionserver Run an HBase HRegionServer node
zookeeper Run a Zookeeper server
rest Run an HBase REST server
thrift Run the HBase Thrift server
thrift2 Run the HBase Thrift2 server
clean Run the HBase clean up script
classpath Dump hbase CLASSPATH
mapredcp Dump CLASSPATH entries required by mapreduce
pe Run PerformanceEvaluation
ltt Run LoadTestTool
version Print the version
CLASSNAME Run the class named CLASSNAME
Search WWH ::




Custom Search