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的命名空间及作用域
    STM32 RTC时钟的配置
    STM32 输入捕获配置
    stm32 看门狗配置
    led灯的驱动电流和电阻
    STM32中TIMx的映射及其通道
    STM32中断定时,控制LED灯
    STM32 用c语言控制4个LED灯从左向右无限流动
    SYSTEMsyssys.c:33:7: error: expected '(' before 'void' __ASM void MSR_MSP(u32 addr)
    STM32 PWM输出(映射)
  • 原文地址:https://www.cnblogs.com/RzCong/p/13549337.html
Copyright © 2011-2022 走看看