我关注了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 的密码,但显然不正确。值得注意的是,我没有遵循 Setup passphraseless ssh 部分,因为我认为这是不必要的 - 我已经可以 ssh,但我完全确定代码可以。
在设置过程中,我还简单地使用了我的本地用户。我没有 sudo su/任何东西。
那么,我该如何解决这个问题呢?谢谢。
最佳答案
检查这是否有帮助
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.
关于macos - 尝试安装 Hadoop - 出现权限被拒绝错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24144847/