一、在每个节点生成公钥和私钥,并拷贝
1、Hadoop100:
生成公钥和私钥
[root@hadoop100] ssh-keygen -t rsa
然后敲(三个回车)
将公钥拷贝到要免密登录的目标机器上
[root@hadoop100] ssh-copy-id hadoop100
[root@hadoop100] ssh-copy-id hadoop101
[root@hadoop100] ssh-copy-id hadoop102
2、Hadoop101:
生成公钥和私钥
[root@hadoop101] ssh-keygen -t rsa