尝试安装hadoop-获取权限被拒绝错误

vmpqdwk3  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(325)

我在这里学习了hadoop教程。
我的最终目标是安装hadoop和spark,而不是在我的mac上,但老实说,我在这方面是一个业余爱好者,最多。
因此,我进入第2步,执行psuedo分布式操作,然后出现以下内容:

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的密码,显然是不正确的。值得注意的是,我没有遵循setuppassphraslessh部分,因为我认为这是不必要的-我已经可以使用ssh了,但我完全确定代码确实如此。
在安装过程中,我还简单地使用了本地用户。我什么都没做。
那么,我该如何解决这个问题呢?谢谢。

tnkciper

tnkciper1#

检查这是否有用

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.

权限被拒绝(公钥、键盘交互)

相关问题