https://www.bilibili.com/video/av70796937
https://archive.apache.org/dist/hbase/1.2.21
2
3
4tar -zxvf habase+tab -C ~/app
cp ~/app/hadoop+tab/etc/hadoop/hdfs-site.xml ~/app/hbase+tab/conf/
cp ~/app/hadoop+tab/etc/hadoop/core-site.xml ~/app/hbase+tab/conf/
hbase-env.sh1
2export JAVA_HOME=/home/hadoop/app/jdk
Annotated Configure PermSize
hbase-site.xml1
2
3
4
5
6
7
8
9
10
11
12
13
14<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://hadoop0:9000/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/hadoop/app/tmp/zookeeper</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
</configuration>
vim ~/.bash_profile
.1
2
3# HBASE ENV
export HBASE_HOME=/home/hadoop/app/hbase-1.2.2/
PATH=$HBASE_HOME/bin:$PATH
source ~/.base_profile
.
hbase version
.vim /etc/hosts
.
1 | start-dfs.sh |