zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    Python自学笔记(12day)
    Python自学笔记(11day)
    Python自学笔记(10day)
    Python自学笔记(9day)
    Python自学笔记(8day)
    form标签的使用
    form标签的使用法
    img标签的使用方法
    <a></a>标签的使用
    html的标签
  • 原文地址:https://www.cnblogs.com/RzCong/p/13549337.html
Copyright © 2011-2022 走看看