HBase学习

HBase是一个开源的,分布式的,多版本的,面向列的存储模型。

《HBase学习》

官网:
http://hbase.apache.org/

安装(伪分布模式)

注:alias dfs="$HADOOP_HOME/bin/hdfs dfs"

axel -n 10 http://mirror.bit.edu.cn/apache/hbase/stable/hbase-1.2.5-bin.tar.gz
tar zxvf hbase-1.2.5-bin.tar.gz
cd hbase-1.2.5
dfs -mkdir /hbase

配置hbase-site.xml

<configuration>
  <property>
    <name>hbase.rootdir</name>
    <value>hdfs://localhost:9000/hbase</value>
  </property>
  <property>
    <name>dfs.replication</name>
    <value>1</value>
  </property>
</configuration>

开启服务前需要开启HDFS
运行服务:./bin/start-hbase.sh
进入shell:./bin/hbase shell

    原文作者:予早
    原文地址: https://www.jianshu.com/p/f81b7fc3e598
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞