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
相关推荐
星辰即远方36 分钟前
Masonry
macos·objective-c·cocoa
一只AI打工虾的自我修养2 小时前
Mac mini 本地AI工作站配置指南(2026实战):从零打造 M4 Mac mini AI 开发环境
人工智能·macos
allanGold3 小时前
figma sketch 平替工具有哪些
macos·figma·sketch·pencil·penbot
Java陈序员3 小时前
牛马效率可视化!一款键鼠统计菜单栏应用!
windows·macos
2501_915106324 小时前
在Mac上搭建iOS开发环境的详细步骤与注意事项
ide·vscode·macos·ios·个人开发·swift·敏捷流程
想个名字想老半天4 小时前
uni 离线打包 ios,适用于自定义 ios系统最低适配 保姆级教程
macos·ios·cocoa
zzzb1234564 小时前
CC-Switch 全平台下载、安装与使用全指南(Windows/macOS/Linux)
linux·windows·macos·ai编程·cc-switch
BugShare5 小时前
macOS 原生定时任务应用,简洁优雅、所见所得
macos
CyL_Cly1 天前
localsend安卓手机下载 支持win/mac/ubuntu
android·macos·智能手机
A懿轩A1 天前
Thaw:让 macOS 菜单栏重获新生的免费全能管理工具,适配 macOS Tache 26.4.1 系统,Ice平替活跃版,解决 Ice 常见报错问题
macos