macos - 尝试安装 Hadoop - 出现权限被拒绝错误

标签 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 的密码,但显然不正确。值得注意的是,我没有遵循 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.

Permission denied (publickey,keyboard-interactive)

关于macos - 尝试安装 Hadoop - 出现权限被拒绝错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24144847/

相关文章:

hadoop - 哪个条件函数在 HIVE 中性能有效?如果还是情况?

shell - 让 ansible 在没有退出代码停止 ssh 连接的情况下运行脚本

ios - (在iOS/OS X SDK中)__i386__和__x86_64__在哪里定义?

ios - 使用 QtCreator 构建应用程序 iOS 时出错

macos - 如何让 IntelliJ UE 和 Tomcat 9 运行我的 Web 应用程序? (苹果系统)

hadoop - 使用Centos v7设置新集群

hadoop - 最好是加缪或地精

git - 无法将主机添加到已知主机列表中-通过Smartgit中的Git-Shell克隆Bitbucket存储库

linux - Bash:如何干净地记录 ssh/bash 输出的处理行?

java - 在 macOS 11 Big Sur 上从 JavaFX 应用程序打开应用程序随机失败,并显示 kLSNoExecutableErr