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
相关推荐
SSH_55231 小时前
MacOs 安装局域网 gitlab 记录
elasticsearch·macos·gitlab
安和昂1 小时前
【iOS】 GCD小结
macos·ios·cocoa
困惑阿三13 小时前
解决 iTerm2 中 nvm 不生效的问题(Mac 环境)
开发语言·前端·macos·bash
mixboot15 小时前
macOS 安装 Grafana + Prometheus + Node Exporter
macos·grafana·prometheus
1024小神20 小时前
tauri2项目打开某个文件夹,类似于mac系统中的 open ./
macos
熊猫钓鱼>_>1 天前
通义灵码2.5——基于MCP实现我的12306火车票智能查询小助手
ide·macos·xcode
Rule-hsh1 天前
VM改MAC电脑密码(截图)
macos
爱补鱼的猫猫1 天前
Mac完美终端(iterm2 + oh my zash + tmux+ControlMaster)
macos·mac完美终端
liudongyang1232 天前
Mac M1 安装 ffmpeg
macos
Bruce_Liuxiaowei2 天前
macOS 风格番茄计时器:设计与实现详解
python·macos