Mac下安装hadoop2.x后,ResourceManager无法启动问题解决

时间:2021-06-25 18:35:36

starting resourcemanager, logging to /Users/hadoop/hadoop-2.7.3/logs/yarn-hadoop-resourcemanager-MacBook-Pro-2.local.out

nohup: can't detach from console: Inappropriate ioctl for device
Mac下的nohup似乎有问题,所以我们干脆不用

进入到hadoop根目录下,用文本编辑器打开  /sbin/yarn-daemon.sh

ctrl+f搜索“nohup”,找到: nohup nice -n $YARN_NICENESS "$HADOOP_YARN_HOME"/bin/yarn --config $YARN_CONF_DIR $command "$@" > "$log" 2>&1 < /dev/null &   这行 

去掉开头的nohup,保存

重启hadoop:stop-all.sh start-all.sh

问题解决,ResourceManageer可以打开了!输入jps:

Mac下安装hadoop2.x后,ResourceManager无法启动问题解决