HBase安装与配置

1.配置 hbase-env.sh
  export JAVA_HOME=/opt/jdk1.8.0_171
  export HBASE_MANAGES_ZK=false

2.配置 hbase-site.sh
 
    hbase.rootdir
    hdfs://zhangbk:9000/hbase
 

 
    hbase.cluster.distributed
    true
 

 
    hbase.master
    60000
 

 
    hbase.zookeeper.quorum
    zhangbk:2181
 

 
    hbase.zookeeper.property.dataDir
    /opt/zookeeper-3.4.5-cdh5.3.6/dataDir
 

3.配置 regionservers
  zhangbk
  
4.配置zookeeper
vi zoo.cfg

dataDir=/opt/zookeeper-3.4.5-cdh5.3.6/zkData  --需创建文件夹zkData
clientPort=2181
server.1=zhangbk:2888:3888

mkdir zkData
cd zkData
vi myid
1

启动zookeeper
bin/zkServer.sh start
HBase的Web界面,浏览器访问HBase文件系统:http://zhangbk:60010


先启动Hadoop,zookeeper,然后启动HBase

你可能感兴趣的:(HBase,HBase)