Quick Start - Standalone HBase
A standalone instance has all HBase daemons — the Master, RegionServers, and ZooKeeper — running in a single JVM persisting to the local filesystem.
建议查看官方文档
HBASE官网
hbase遇到的坑总结
全分布式环境
配置sshd免密登陆
1,生成密钥 On node-a On node-b On node-c
$ ssh-keygen -t rsa
2, 创建.ssh 文件夹 保存密钥
create a .ssh/ directory in the user’s home directory,
3,拷贝公钥到其他节点
在其他节点创建 .ssh/authorized_keys 文件
执行 cat id_rsa.pub >> ~/.ssh/authorized_keys
4,测试免密登陆
ssh node-a
5,编辑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>
6 修改hbase-env.sh
# The java implementation to use.
export JAVA_HOME=/usr/java/jdk1.8.0/
# The maximum amount of heap to use. Default is left to JVM default.
export HBASE_HEAPSIZE=4G
7,配置主机名
vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=hbase
8,配置主机名映射
192.168.43.98 hbase
9,修改hbase conf/regionservers
hbase
外网链接注意关闭防火墙
hbase hadoop版本兼容性整理