zoukankan      html  css  js  c++  java
  • 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
    
  • 相关阅读:
    在Windows下生成SSH文件
    git常用命令总结
    小Q的歌单
    在vmware下安装Ubuntu16-04
    hexo-next博客中mathjax显示问题解决
    可乐复制问题
    hexo-next博客添加评论功能
    hexo-next博客添加在线联系功能
    tableau desktop
    tableau desktop
  • 原文地址:https://www.cnblogs.com/wolf-yasen/p/10588666.html
Copyright © 2011-2022 走看看