试图安装Hadoop - 获取Permission denied错误

时间:2014-06-10 15:23:30

标签: macos hadoop ssh

我在这里关注了this Hadoop教程。

我的最终目标是安装Hadoop和Spark,以及我的Mac上没有的东西,但老实说,我最好是这个东西的业余爱好者。

所以,我进入第2步,执行 Psuedo-Distributed Operation ,然后出现以下内容:

sudo start-dfs.sh
Password:
2014-06-10 18:42:01.200 java[6982:1303] Unable to load realm info from SCDynamicStore
14/06/10 18:42:01 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 17:d5:20:eb:8d:f9:24:2f:c6:46:d7:e2:f5:6a:b8:c1.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
Password:
Password:
Password:
localhost: Permission denied (publickey,keyboard-interactive).

基本上,我输入了用户lanceguinto的密码,显然是不正确的。值得注意的是,我没有按照设置passphraseless ssh 部分,因为我认为这是不必要的 - 我已经可以ssh了,但我完全相信代码可以。

在设置过程中,我也只是使用了我的本地用户。我没有sudo su / any。

那么,我该如何解决这个问题呢?感谢。

1 个答案:

答案 0 :(得分:0)

检查这是否有帮助

You need to change the sshd_config file in the remote server (probably in /etc/ssh/sshd_config).

Change

PasswordAuthentication no
to

PasswordAuthentication yes
And then restart the sshd daemon.

Permission denied (publickey,keyboard-interactive)