mac m2 安装 hbase

默认安装好了 homebrew。

  1. 终端先更新下 homebrew
bash 复制代码
brew upgrade

再安装 hbase

bash 复制代码
brew install hbase

安装完会有如下图的内容

  1. 按照提示启动 hbase
bash 复制代码
brew services start hbase

返回启动成功

  1. 访问 http://localhost:16010 检验一下

启动成功

  1. 在启动 hbase shell之前,先修改个配置

找到 hbase-env.sh 文件,我的是在 /opt/homebrew/Cellar/hbase/2.6.2/libexec/conf 下,进入编辑

bash 复制代码
cd /opt/homebrew/Cellar/hbase/2.6.2/libexec/conf
vim hbase-env.sh

检索"+UseConcMarkSweepGC",找到后改为"+UseG1GC",保存后退出

  1. 启动 hbase shell
bash 复制代码
hbase shell

启动成功

使用完后,exit 退出 hbase shell

bash 复制代码
exit

在 bin 目录下,关闭 hbase

bash 复制代码
cd /opt/homebrew/Cellar/hbase/2.6.2/libexec/bin
./stop-hbase.sh
相关推荐
coderklaus4 小时前
Shell 基础知识
linux·macos·shell
ACGkaka_8 小时前
Mac(十)设置右键文件夹使用 idea、vscode 打开
vscode·macos·intellij-idea
I烟雨云渊T1 天前
iOS 数据持久化
macos·ios·cocoa
超级小忍2 天前
从零开始:JDK 在 Windows、macOS 和 Linux 上的下载、安装与环境变量配置
java·windows·macos
三劫散仙2 天前
mac m1上使用Kerberos访问远程linux hadoop集群的正确姿势
linux·hadoop·macos
@蓝眼睛2 天前
mac的m3芯片安装JDK8、JDK17
macos·jdk
彬彬醤2 天前
Mac怎么连接VPS?可以参考这几种方法
大数据·运维·服务器·数据库·线性代数·macos·矩阵
ka2x3 天前
Mac 电脑 IDEA 执行 Maven 出现 No route to host 问题
macos·maven·intellij-idea
蝎子莱莱爱打怪3 天前
Hadoop3.3.5、Hbase2.6.1 集群搭建&Phoenix使用记录
大数据·后端·hbase
易我数据恢复大师3 天前
如何在mac玩windows游戏?3个工具推荐,不用换电脑!
macos·mac·mac运行windows游戏·easeus os2go·mac玩windows游戏