码迷,mamicode.com
首页 > 其他好文 > 详细

hbase安装

时间:2018-11-29 01:22:47      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:lib   remove   单机   home   for   lis   close   cal   oss   

一、单机安装

  1、下载地址

    https://www.apache.org/dyn/closer.lua/hbase/1.4.8/hbase-1.4.8-bin.tar.gz

  2、解压缩

    tar -zxvf  hbase-1.4.8-bin.tar.gz

  3、环境变量

## 修改 ~/.bash_profile 或者 /etc/profile
export HBASE_HOME=/Users/***/soft/hbase-1.4.8
export PATH=$PATH:$HBASE_HOME/bin

  4、配置

<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>

  5、启动

bin/start-hbase.sh 
running master, logging to /Users/***/soft/hbase-1.4.8/logs/hbase-xugm-master-xugmdeMacBook-Pro.local.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0

  6、验证

bin/hbase shell
2018-11-28 23:25:49,377 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
Version 1.4.8, r91118ce5f10fb4efa03cc8c5a47c7ce97175e85e, Tue Oct  2 11:48:24 PDT 2018

hbase(main):001:0> 

  

 

 

hbase安装

标签:lib   remove   单机   home   for   lis   close   cal   oss   

原文地址:https://www.cnblogs.com/KyleXu/p/10035742.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!