1.2 各节点重新产生ssh加密文件
1 ssh-keygen -t rsa 一路回车
2 cd /root/.ssh/然后cat id_rsa.pub >>authorized_keys
3在hadoop1机器上 ssh-copy-id -i hadoop3
在hadoop2机器上 ssh-copy-id -i hadoop3
4 这样hadoop3的authorized_keys就存了3个了,然后scp给其他两台机器
scp /root/.ssh/authorized_keys hadoop1:/root/.ssh/
scp /root/.ssh/authorized_keys hadoop2:/root/.ssh/
1 ssh-keygen -t rsa 一路回车
2 cd /root/.ssh/然后cat id_rsa.pub >>authorized_keys
3在hadoop1机器上 ssh-copy-id -i hadoop3
在hadoop2机器上 ssh-copy-id -i hadoop3
4 这样hadoop3的authorized_keys就存了3个了,然后scp给其他两台机器
scp /root/.ssh/authorized_keys hadoop1:/root/.ssh/
scp /root/.ssh/authorized_keys hadoop2:/root/.ssh/