![](https://csdnimg.cn/release/download_crawler_static/88274929/bg5.jpg)
3.2 合并所有节点 id_rsa.pub 内容为 authorized_keys 文件(就是复制所有节点的
id_rsa.pub 文件内容,粘贴到文件 authorized_keys 中)
[root@cdh1 .ssh]# cat id_rsa.pub
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDg4+y8WwcKoVAungfThogHKGE2eL2NY3CG2JI/O3j2nKk7ZRP
x6RcNKUC+k1aTe1RqIeojnrocIgGmX7iXQWTsdBuoGDeYnaeRtEQo7dJit07IsJuQSwdOyMCXKMFhKt
WvNPo7IF2i/nUoSvVQXCd7LXzUnFjOKiheDQbHyb0/KWYgYa7EhDSsy6Bx/vT3iha1yaRaJ63aWZik+
V9rDoDJqKUKYa6uL1XyabOFrZebdtJtDofpNGDmteZUyUo995NFaWrvWGhXiwfnAnvbFCvPIt34D70d
fa2jKAsxFUO/v5TvDOw0Rqr8VWXJG0hXEzlFglavDuC2qGYDk74hKltL root@cdh1
[root@cdh1 .ssh]# vi authorized_keys
3.3 更改权限并分发到全部节点
chmod 600 authorized_keys
scp authorized_keys root@cdh-dev2:~/.ssh
scp authorized_keys root@cdh-dev3:~/.ssh
4.Java 环境(需修改所有节点:具体 jdk 支持版本请参考 cdh6 环境准备文档)
4.1 查看 java 版本,满足需求即可,不满足需重新安装
[root@cdh1 parcel-repo]# java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)