Starting HBase in Standalone Mode
In order to run HBase in standalone mode, you must install the HBase Master package.
Installing the HBase Master
To install the HBase Master on RHEL-compatible systems:
$ sudo yum install hbase-master
To install the HBase Master on Ubuntu and Debian systems:
$ sudo apt-get install hbase-master
To install the HBase Master on SLES systems:
$ sudo zypper install hbase-master
Starting the HBase Master
- On RHEL and SLES systems (using .rpm packages) you can now start the HBase Master by using the included service script:
$ sudo service hbase-master start
- On Ubuntu systems (using Debian packages) the HBase Master starts when the HBase package is installed.
To verify that the standalone installation is operational, visit http://localhost:60010. The list of RegionServers at the bottom of the page should include one entry for your local machine.
If you see this message when you start the HBase standalone master:
Starting Hadoop HBase master daemon: starting master, logging to /usr/lib/hbase/logs/hbase-hbase-master/cloudera-vm.out Couldnt start ZK at requested address of 2181, instead got: 2182. Aborting. Why? Because clients (eg shell) wont be able to find this ZK quorum hbase-master.
you will need to stop the hadoop-zookeeper-server (or zookeeper-server) or uninstall the hadoop-zookeeper-server (or zookeeper) package.
See also Accessing HBase by using the HBase Shell, Using MapReduce with HBase and Troubleshooting HBase.
Installing and Starting the HBase Thrift Server
To install Thrift on RHEL-compatible systems:
$ sudo yum install hbase-thrift
To install Thrift on Ubuntu and Debian systems:
$ sudo apt-get install hbase-thrift
To install Thrift on SLES systems:
$ sudo zypper install hbase-thrift
$ sudo service hbase-thrift start
Installing and Configuring HBase REST
To install HBase REST on RHEL-compatible systems:
$ sudo yum install hbase-rest
To install HBase REST on Ubuntu and Debian systems:
$ sudo apt-get install hbase-rest
To install HBase REST on SLES systems:
$ sudo zypper install hbase-rest
You can use the service command to run an init.d script, /etc/init.d/hbase-rest, to start the REST server; for example:
$ sudo service hbase-rest start
The script starts the server by default on port 8080. This is a commonly used port and so may conflict with other applications running on the same host.
If you need change the port for the REST server, configure it in hbase-site.xml, for example:
<property> <name>hbase.rest.port</name> <value>60050</value> </property>