HBase- 安装单机版HBase

HBase- 安装单机版HBase

下载安装

tar -xvzf hbase-1.2.1-bin.tar.gz

配置HBase配置文件

$HBASE_HOME/conf

hbase-env.sh

export JAVA_HOME=/opt/app/jdk/

export HBASE_MANAGES_ZK=false

hbase-site.xml

<configuration>
<!-- hbase在HDFS上存放数据目录 -->
        <property>
                <name>hbase.rootdir</name>
                <value>hdfs://hdp/hbase</value>
        </property>
                <!-- 指定hbase是分布式的 -->
        <property>
                <name>hbase.cluster.distributed</name>
                <value>true</value>
        </property>
                <!-- 指定zk的地址,多个用“,”分割 -->
        <property>
                <name>hbase.zookeeper.quorum</name>
                <value>hdp:2181</value>
        </property>
<!-- ZooKeeper数据文件路径 -->
<property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/opt/data/hbase/zookeeper</value>
  </property>

<property>
      <name>hbase.master.port</name>
      <value>60000</value>
   </property>
  <property>
     <name>zookeeper.session.timeout</name>
     <value>60000</value>
   </property>
   <property>
    <name>hbase.zookeeper.property.clientPort</name>
     <value>2181</value>
</property>->
i<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>

regionservers

hdp

posted @ 2020-08-23 15:30  RZ_Lee  阅读(194)  评论(0编辑  收藏  举报