hbase (1)-hbase installation
Article Directory
1. Introduction
Hbase is a distributed, column-oriented no database that can be used to store massive amounts of data. The bottom layer is usually basically the hdfs file system of hadoop (of course, it can also be basically based on the local file system).
Second, the installation steps
2.1 Install hadoop
Omit here (for installation, refer to hadoop installation)
2.2 Download hbase
wget http://mirrors.hust.edu.cn/apache/hbase/2.1.0/hbase-2.1.0-bin.tar.gz
2.3 Unzip hbase
tar -zxvf hbase-2.1.0-bin.tar.gz
2.4 Modify the hbase-env.sh file
Modify the conf / hbase-env.sh file (use the zookeeper that comes with hbase here, or use a separate zookeeper)
vim conf / hbase-env.sh
#指定java_home
export JAVA_HOME=/usr/local/jdk
#可使用hbase自带的zookeeper
export HBASE_MANAGES_ZK=true
2.5 Modify conf / hbase-site.xml
vim conf/hbase-site.xml
<!-- 指定hbase在hdfs中的地址 -->
<property>
<name>hbase.rootdir</name>
<value>hdfs://192.168.0.1:9000/hbase</value>
</property>
<!-- 指定hbase是分布式的 -->
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<!-- 指定bhase的master地址 -->
<property>
<name>hbase.master.port</name>
<value>60000</value>
</property>
<!-- 指定hbase的web端口 -->
<property>
<name>hbase.master.info.port</name>
<value>60010</value>
</property>
<!-- 指定zookeeper地址 -->
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.0.1</value>
</property>
<!--指定zookeeper端口-->
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2182</value>
</property>
<!--zookeeper超时时间-->
<property>
<name>zookeeper.session.timeout</name>
<value>60000</value>
</property>
<!--zookeeper中bhase路径-->
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase</value>
</property>
6. Start or close hbase
启动:bin/start-hbase.sh
关闭:bin/stop-hbase.sh
At this point, hbase installation is complete
3. Use
3.1 View progress
Enter jps on the command line, you can see the process:
HMaster
HRegionServer
HQuorumPeer
3.2 Web address view
Just enter http://192.168.0.1:60010 in the browser
3.3 hbase shell startup
bin/hbase shell