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
相关推荐
1024小神9 小时前
Mac 副屏快速左 50% 分屏
macos
菜鸟歪歪歪14 小时前
idea中增加api中转站教程(Mac,Window通用)
macos·intellij-idea
小石潭记丶1 天前
本地mac创建秘钥,然后远程登录Linux服务器
linux·服务器·macos
小呀小叮当~1 天前
OpenAI Codex 桌面版(Windows / macOS)体验分享:AI 编程效率再次提升
人工智能·windows·macos
myenjoy_11 天前
I2S 音频与数字音频接口详解
macos·音视频·xcode
星野爱8952 天前
崩坏星穹铁道4.4版本即将前瞻!Mac畅玩PC端开荒新版本
macos
funnycoffee1232 天前
lacp报文占多少字节?报文的目的mac
网络·网络协议·macos
itwangyang5203 天前
Claude Code macOS 安装完整指南:Homebrew、原生脚本与常见问题解决
macos
汤姆yu3 天前
macOS系统下Aider完整安装、配置与实战使用教程
大数据·人工智能·算法·macos·github·copilot
码云数智-园园3 天前
SwiftUI 6 生产落地踩坑实录
macos·objective-c·cocoa