hbase基础

hbase安装

tar -zxvf hbase-2.4.11-bin.tar.gz -C .
ln -s f hbase-2.4.11-bin hbase

mv /export/server/hbase/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar /export/server/hbase/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar.bak

vim conf/regionservers

node1
node2
node3

vim conf/hbase-env.sh

# Tell HBase whether it should manage it's own instance of ZooKeeper or not.
export HBASE_MANAGES_ZK=false
#设置不扫描hadoop的jar,如果扫描很容易出现异常object is not an instance of declaring class
#参考https://blog.csdn.net/yhj_911/article/details/125481762
export HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP="true"

vim conf/hbase-env.sh




  
    hbase.cluster.distributed
    true
  
  
    hbase.zookeeper.quorum
    node1,node2,node3
  
  
    hbase.rootdir
    hdfs://node2:8020/hbase
  

root@node2 ~: sudo /home/hadoop/bin/xsync hbase-2.4.11-bin
ln -s hbase-2.4.11-bin hbase

vim /etc/profile

export HBASE_HOME=/export/server/hbase
$PATH=$HBASE_HOME/bin

source /etc/profile
root@node2 ~: sudo /home/hadoop/bin/xsync /etc/profile
source /etc/profile

HA

touch conf/backup-masters
echo node1 > conf/backup-masters
xsync conf

定义

数据模型

hbase基础_第1张图片
d8d
hbase基础_第2张图片
hbase基础_第3张图片
hbase基础_第4张图片
hbase基础_第5张图片
hbase基础_第6张图片

你可能感兴趣的:(大数据,hbase,数据库)