HBase伪分布式安装
在root的用户下搭建的
1): 前提 安装JDK配置JAVA_HOME
2):前提 安装启动zookeeper
3):前提 安装Hadoop客户端,配置HADOOP_HOME环境变量
4):下载解压HBase,wget http://mirror.bit.edu.cn/apache/hbase/stable/hbase-1.2.6-bin.tar.gz
5):配置HBASE_HOME环境变量
命令:vim hbase-en.sh

export HBASE_HOME=/usr/local/hbase
export PATH=$PATH:$HBASE_HOME/bin
保存退出,使用source配置生效
命令: source /etc/profile.d/sqoop-en.sh
6):配置conf/hbase-env.sh,增加export HBASE_MANAGES_ZK=false
7):配置conf/hbase-site.xml

<configuration> <property> <name>hbase.rootdir</name> --hbase持久保存的目录 <value>hdfs://localhost:9000/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> --是否是分布式 <value>true</value> </property> <property> <name>hbase.zookeeper.property.clientPort</name> --指定要连接zk的端口 <value>2181</value> </property> <property> <name>hbase.zookeeper.quorum</name> --指定要连接zk的节点 <value>localhost</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/data/hbase/zkData</value> --在data下新建hbase,再在hbase新建zkData </property> </configuration>
8):启动成功
start-hbase.sh
如果 敲上start-hbase.sh
显示 -base start-hbase.sh 未找到命令
那么退出当前你注册的用户,再进入你注册的用户 敲上 start-hbase.sh即可
最后可查看http://localhost:16010/master-status