hbase安装
Posted kylexu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hbase安装相关的知识,希望对你有一定的参考价值。
一、单机安装
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安装的主要内容,如果未能解决你的问题,请参考以下文章