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
相关推荐
Tr2e4 小时前
🐱 从 0 到 1:用 Swift 手搓一个 macOS 桌面宠物(附源码)
macos·ios·swift
Mac技巧大咖7 小时前
macOS 27 或成 Intel Mac 分水岭:老款 Mac 用户升级前要注意什么?
macos·macos 27
上天_去_做颗惺星 EVE_BLUE8 小时前
【新 Linux 服务器上手全攻略】系统巡检、存储规划与开发环境初始化
linux·运维·服务器·ubuntu·macos·centos
REDcker9 小时前
WWDC2026系统更新综述
macos·ios·开发者·apple·wwdc·ipados·wwdc2026
Sammyyyyy10 小时前
2026 Mac 本地大模型部署深度解析与混合架构指南
数据库·人工智能·macos·ai·架构·servbay
亚林瓜子10 小时前
mac自动启动位置
macos
zahuilg1010 小时前
Mac原生终端SSH一键快捷连接|无需装软件、极简安装、快速上手
macos·ssh·github·终端
2501_9159214312 小时前
uni-app 上架 iOS 的完整流程(无需依赖 Mac)
android·macos·ios·小程序·uni-app·iphone·webview
mpr0xy12 小时前
行走编程:把你的 Mac 变成一台随身 AI 开发工作站
人工智能·macos·ai·大语言模型·ai编程·ai写需求
Fatbobman(东坡肘子)12 小时前
WWDC 2026 初印象:符合预期,但更务实 -- 肘子的 Swift 周报 #139
人工智能·macos·ios·swiftui·swift·wwdc