在安装hadoop时,我犯了很多错误,但这一个就是不去。不管我做什么,它总是一次又一次地弹出。一旦我通过命令启动hadoop ./start-all.sh
,我得到错误:
本地主机:rajneeshsahai@localhost:权限被拒绝(公钥、密码、键盘交互)
错误日志:
Starting namenodes on [localhost]
localhost: rajneeshsahai@localhost: Permission denied (publickey,password,keyboard-interactive).
Starting datanodes
localhost: rajneeshsahai@localhost: Permission denied (publickey,password,keyboard-interactive).
Starting secondary namenodes [MacBook-Air.local]
MacBook-Air.local: rajneeshsahai@macbook-air.local: Permission denied (publickey,password,keyboard-interactive).
2020-05-29 18:42:06,106 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting resourcemanager
resourcemanager is running as process 2937. Stop it first.
Starting nodemanagers
localhost: rajneeshsahai@localhost: Permission denied (publickey,password,keyboard-interactive).
我已经试过以下方法: ssh-keygen -t rsa
cat ~/.ssh/id-rsa.pub >> ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys
我认为重复这个过程在我的系统中创建了多个键。 sudo passwd
已配置 /etc/ssh/sshd_config
(i) 已更改 PermitRootLogin prohibit-password
至 PermitRootLogin yes
(二)变更 PasswordAuthentication no
至 PasswordAuthentication yes
我有一个疑问:我必须删除散列标签吗( #
)从台词上?
我用的是macos catalina。
暂无答案!
目前还没有任何答案,快来回答吧!