Hbase安装

//hbase-env.sh
export JAVA_HOME=/home/hadoop/jdk1.7.0_80
//export HBASE_CLASSPATH=${HADOOP_HOME}/conf
export HBASE_MANAGES_ZK=true
//regionservers
master
slave1
slave2
//hbase-site.xml

//hdfs 地址或者本地文件地址
  
        hbase.rootdir
        hdfs://master:9000/hbase
        The directory shared by RegionServers.
        
  
//存放zookeeper等路径
  
    hbase.zookeeper.property.dataDir
    /home/hadoop/hbase-1.1.3/zkdata
  
  
        hbase.cluster.distributed
        true
        The mode the cluster will be in. Possible values are
          false: standalone and pseudo-distributed setups with managed Zookeeper
          true: fully-distributed with unmanaged Zookeeper Quorum (see hbase-env.sh)
        
  
  
        hbase.master
    master:60000
  
  
    hbase.zookeeper.quorum
    master,slave1,slave2
   


//etc/profile
export HBASE_HOME=/home/hadoop/hbase-1.1.3
export HBASE_CLASSPATH=${HBASE_HOME}/*.jar:${HBASE_HOME}/lib/*.jar

//启动
hbase-daemon.sh start zookeeper
hbase-daemon.sh start  master
hbase-daemon.sh start regionserver
jps 有三个进程
#全部启动
start-hbase.sh 
#停止
stop-hbase.sh 
//*********************shell操作******//
hbase shell


http://localhost:16010/master-status

Hbase安装_第1张图片
Paste_Image.png

你可能感兴趣的:(Hbase安装)