我在 Ubuntu 操作系统上配置 hadoop。我需要创建 RSA 密钥对以允许 hadoop 与其节点交互,所以我运行以下命令:
hadoop@ubuntu:~$ ssh-keygen -t rsa -P ""
然后我得到这个:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hadoop/.ssh/id_rsa):
Could not create directory '/home/hadoop/.ssh': permission denied.
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.