mac用brew安装hbase

一、环境信息

mac 11.6 bigSur
java jdk1.8

二、安装

brew install hbase

安装信息

==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/lzo-2.10.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/openjdk%4011-11.0.12.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/hbase-2.4.5.big_sur.bottle.1.tar.gz
######################################################################## 100.0%

To start hbase:
  brew services start hbase
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/hbase/bin/hbase --config /usr/local/opt/hbase/libexec/conf master start



三、配置

安装路径
/usr/local/opt/hbase/bin/start-hbase.sh

配置Hbase
conf/hbase-env.sh设置JAVA_HOME

cd /usr/local/Cellar/hbase/2.4.5/libexec/
$ vim conf/hbase-env.sh

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home

在conf/hbase-site.xml设置HBase的核心配置

<configuration>
  <property>
    <name>hbase.rootdir</name>
    //这里设置让HBase存储文件的地方
    <value>file:///usr/local/var/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    //这里设置让HBase存储内建zookeeper文件的地方
    <value>/usr/local/var/zookeeper</value>
  </property>
</configuration>

四、启动

cd ../bin
./start-hbase.sh

jps #  查看是否启动成功
28592 Elasticsearch
67411 HMaster
96834 
35492 RemoteMavenServer36
41589 RemoteMavenServer36
67464 Jps

五、hbase的webUI

http://localhost:16010
在这里插入图片描述

六、启动hbase shell

在/usr/local/Cellar/hbase/2.4.5/libexec目录下

./bin/hbase shell       

2022-05-03 22:39:05,634 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.
For Reference, please visit: http://hbase.apache.org/2.0/book.html#shell
Version 2.4.5, r03b8c0cf426cbae3284225b73040ec574d5bac34, Tue Jul 27 09:44:16 PDT 2021
Took 0.0014 seconds                                                                                                                                                                             
hbase:001:0> 


  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值