【发布时间】:2016-06-27 23:24:08
【问题描述】:
我正在尝试学习 hadoop,所以我正在学习一个教程,但是我在安装 hadoop 时遇到了问题。
我应该创建一个新用户并使用它设置一个 ssh 密钥(使用 ubuntu)。
su
adduser
passwd
su - hadoop
ssh-keygen -t rsa
当我输入最后一条命令时 O get
Enter file in which to save the key (/home/hadoop/.ssh/id_rsa):
不知道该写什么,只是按回车,我得到了
Could not create directory '/home/hadoop/.ssh': No such file or directory
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
open /home/hadoop/.ssh/id_rsa failed: No such file or directory.
Saving the key failed: /home/hadoop/.ssh/id_rsa.
有人可以帮忙吗。
【问题讨论】:
-
不是编程问题;尝试超级用户或 unix & linux。