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
相关推荐
harmful_sheep2 天前
mac生效的终端查看
macos
iOS门童3 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~3 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员3 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843943 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei3 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利3 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen3 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c3 天前
如虎添翼-MacOS
macos
m0_737302583 天前
iOS IPA 安装 Plist 文件生成工具
macos·objective-c·cocoa