hbase伪分布式搭建

 

Quick Start - Standalone HBase

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版本兼容性整理

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值