0%

虚拟机CentOS7安装HBase

https://www.bilibili.com/video/av70796937

https://archive.apache.org/dist/hbase/1.2.2

1
2
3
4
tar -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.sh

1
2
export JAVA_HOME=/home/hadoop/app/jdk
Annotated Configure PermSize

hbase-site.xml

1
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
2
3
4
5
6
7
8
9
10
11
12
13
start-dfs.sh
jps
start-hbase.sh
hbase shell
exit

cd ~/app/hbase/lib
mv slf4j-log4j12-1.7.5.jar slf4j-log4j12-1.7.5.jar.backup
status
list
exit
hadoop fs -ls /
hadoop fs -ls /hbase
Have fun.