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
print “ 欢迎来到渣小狼的博客,这既是博客,也是日记,里面记录了小狼的学习经历还有一些小狼的见解,非常希望每一个来到这里的人能够留下只言片语,更加的希望留下的是对于小狼的不足的补充,谢谢(*^__^*) 嘻嘻……”