注意:有时候在测试时可能会出现错误: Agent admitted failure to sign using the key.解决办法是:ssh-add ~/.ssh/id_rsa
Master 和 Slaves远程无密码通信 关键指令是:先输入:scp authorized_keys Slave1:/home/hadoop/.ssh
再输入:
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
然后是Master和Slaves之间的互相追加公钥,完成所有集群之间的互相通信
cat authorized_keys1 >> authorized_keys2
时间: 2024-10-10 07:24:39