HABSE安装教程

教程: https://hbase.apache.org/book.html#quickstart
(以下基本为翻译...)

JDK环境需要

HBASE

从官网下载hbase https://hbase.apache.org/downloads.html 我选择的是1.4.9

解压并转移到相应目录

$ tar xzvf hbase-3.0.0-SNAPSHOT-bin.tar.gz
$ cd hbase-3.0.0-SNAPSHOT/

设置JAVA_HOME

修改 your_hbase_dir/conf/hbase-env.sh,找个位置添加

# Set environment variables here.
# The java implementation to use.
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_201 #即java安装目录

编辑your_jbase_dir/conf/hbase-site.xml

<configuration>
  <property>
    <name>hbase.rootdir</name>
    <value>file:///home/testuser/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/home/testuser/zookeeper</value>
  </property>
  <property>
    <name>hbase.unsafe.stream.capability.enforce</name>
    <value>false</value>
    <description>
      Controls whether HBase will check for stream capabilities (hflush/hsync).

      Disable this if you intend to run on LocalFileSystem, denoted by a rootdir
      with the 'file://' scheme, but be mindful of the NOTE below.

      WARNING: Setting this to false blinds you to potential data loss and
      inconsistent system state in the event of process and/or node failures. If
      HBase is complaining of an inability to use hsync or hflush it's most
      likely not a false positive.
    </description>
  </property>
</configuration>

启动hbase

$ bin/start-hbase.sh

结束后shell输入jps,查看java进程,会出现HMaster

$ jps

posted on 2019-03-24 16:21  子狼  阅读(219)  评论(0编辑  收藏  举报

导航