安装 java8 ,因为 jdk13 后面会出问题:
brew cask install homebrew/cask-versions/adoptopenjdk8
安装指导,指导里面把java 换成 8:
https://medium.com/beeranddiapers/installing-hadoop-on-mac-a9a3649dbc4d
验证hdfs 的地址不再是 50070, 而是:
http://localhost:9870
一般 brew 安装的java8的 home:
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
启动:
cd /usr/local/Cellar/hadoop/3.2.1_1/libexec/sbin
./start-dfs.sh
./stop-dfs.sh