如果启动hadoop集群的时候报下面这个错误:
20/10/13 12:28:25 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: ssh: connect to host localhost port 22: Connection refused
localhost: ssh: connect to host localhost port 22: Connection refused
Starting secondary namenodes [account.jetbrains.com]
account.jetbrains.com: ssh: connect to host account.jetbrains.com port 22: Connection refused
20/10/13 12:28:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
1、首先
ssh localhost
ssh: connect to host localhost port 22: Connection refused
然后:
sudo systemsetup -f -setremotelogin on
最后
ssh localhost
如果还解决不了问题的话,请关注下方公众号: