1. Unpack the installation package to the path/usr/local
1.1.sudo tar -zxf ~/download/hbase-1.1.2-bin.tar.gz-c/usr/local
2. Change the extracted filename hbase-1.1.2 to hbase for easy use
2.1sudo mv /usr/local/hbase-1.1.2/usr/local/hbase
3. View HBase version to test if HBase V ' installation was successful
3.1/usr/local/hbase/bin/hbase version
HBase has three modes of operation , single-machine mode, pseudo-distributed mode, and distributed mode . (Stand-alone mode here)
4: Configure command-line environment variable/etc/profile
export HBASE_HOME=/usr/local/hbaseexport PATH=$HBASE_HOME/bin:$PATH
5: Modify the HBase configuration file/conf/hbase-env.sh
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64export HBASE_MANAGES_ZK=true
6: Edit. XML configuration File Conf/hbase-site.xml
<Configuration><Property><Name>hbase.rootdir</Name><Value>file:///usr/local/hbase/hbase-tmp</Value><The location where the description> data is stored.</Description></Property>< Span class= "Hljs-tag" > < Span class= "Hljs-title" > < Span class= "Hljs-tag" > </ Configuration>
7. 接下来测试运行。首先切换目录至HBase安装目录/usr/local/hbase;再启动HBase。命令如下:
cd
/usr/local/hbase
bin
/start-hbase
.sh
bin
/hbase
shell8.
sudo bin/start-hbase.sh for starting HBase
The Bin/hbase shell is used to open the shell command-line mode , and users can manipulate the HBase database by entering a shell command.
stop HBase from running with the following command:
sudo
bin
/stop-hbase
.sh
Ubuntu 16.04 Hbase Installation