Ubuntu中有apt-get命令。这强大的软件包管理系统使得在Ubuntu系统下安装软件十分方便。macOS系统同样拥有此类的软件包管理系统Homebrew. Homebrew 在macOS系统中安装hadoop、hbase起到重要作用。
安装方法:
打开终端,输入如下代码后Enter
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
在看到 Press RETURN to continue or any other key to abort 提示后,敲Enter
常用命令:
# 查看brew的帮助
brew -help
# 安装软件
brew install hadoop
# 卸载软件
brew uninstall hadoop
# 搜索软件
brew search hadoop
# 查看已经安装的软件
brew list
# 更新软件
brew update
# 更新某具体软件
brew upgrade hadoop