Make sure HDFS is running first. Start and stop the Hadoop HDFS daemons by running
bin/start-hdfs.sh
over in the HADOOP_HOME
directory. You can ensure it started properly by testing the put and
get of files into the Hadoop filesystem. HBase does not normally use
the mapreduce daemons. These do not need to be started.
If you are managing your own ZooKeeper, start it and confirm its running else, HBase will start up ZooKeeper for you as part of its start process.
Start HBase with the following command:
bin/start-hbase.sh
Run the above from the HBASE_HOME
directory.
You should now have a running HBase instance. HBase logs can be found in the
logs
subdirectory. Check them out especially if HBase had trouble
starting.
HBase also puts up a UI listing vital attributes. By default its deployed on the Master
host at port 16010 (HBase RegionServers listen on port 16020 by default and put up an
informational http server at 16030). If the Master were running on a host named
master.example.org
on the default port, to see the Master's homepage
you'd point your browser at http://master.example.org:16010
.
Prior to HBase 0.98, the default ports the master ui was deployed on port 16010, and the HBase RegionServers would listen on port 16020 by default and put up an informational http server at 16030.
Once HBase has started, see the Procedure 1.2, “Use HBase For the First Time” for how to create tables, add data, scan your insertions, and finally disable and drop your tables.
To stop HBase after exiting the HBase shell enter
$ ./bin/stop-hbase.sh stopping hbase...............
Shutdown can take a moment to complete. It can take longer if your cluster is comprised of many machines. If you are running a distributed operation, be sure to wait until HBase has shut down completely before stopping the Hadoop daemons.