hadoop 版本: hadoop-2.7.2
hadoop 安装请见前文
版本:hbase-1.1.4
前提,安装了 hadoop
如果没有启动 hadoop,启动
$start-dfs.sh
下载 和 安装 Hbase
$tar xzf hbase-1.1.4-bin.tar.gz
配置 hbase-1.1.4/conf/hbase-env.sh, 写入
export JAVA_HOME=$JAVA_HOME
前提是在 .bashrc 中配置了 JAVA_HOME 的路径
编辑 hbase-1.1.4/conf/hbase-site.xml, 写入
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/yn/tools/zookeeper</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
启动 hbase
$hbase-1.1.4/bin/start-hbase.sh
连接 hbase
$bin/hbase shell