在搭建hadoop高可通集群,启动yarn的时候遇到问题
[root@gree131 hadoop]# start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /opt/soft/hadoop260/logs/yarn-root-resourcemanager-gree131.out
The authenticity of host 'gree129 (192.168.**.129)' can't be established.
ECDSA key fingerprint is SHA256:UrtSJM762AtU2URs/zH8rHccrh1ZgLOP3FAmMP/tLrY.
ECDSA key fingerprint is MD5:f3:8d:21:1b:c3:de:20:35:af:d3:06:46:0a:76:f3:e2.
Are you sure you want to continue connecting (yes/no)? gree132: nodemanager running as process 2207. Stop it first.
gree131: nodemanager running as process 2379. Stop it first.
gree134: ssh: Could not resolve hostname gree134: Name or service not known
一、gree134是hosts问题,需要在hosts中修改ip地址
[root@gree131 hadoop260]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.59.128 gree128
192.168.59.129 gree129
192.168.59.131 gree131
192.168.59.132 gree132
二、gree129问题:The authenticity of host 'gree129 (192.168.59.129)' can't be established.
执行一下命令 ssh -o StrictHostKeyChecking=no 192.168.59.129
[root@gree131 ~]# ssh -o StrictHostKeyChecking=no 192.168.59.129
Last login: Thu Nov 4 22:32:34 2021 from gree131
这样就行了,再次执行start-yarn.sh 就没问题
[root@gree129 soft]# start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /opt/soft/hadoop260/logs/yarn-root-resourcemanager-gree129.out
gree132: starting nodemanager, logging to /opt/soft/hadoop260/logs/yarn-root-nodemanager-gree132.out
gree134: starting nodemanager, logging to /opt/soft/hadoop260/logs/yarn-root-nodemanager-gree134.out
gree129: starting nodemanager, logging to /opt/soft/hadoop260/logs/yarn-root-nodemanager-gree129.out
gree131: starting nodemanager, logging to /opt/soft/hadoop260/logs/yarn-root-nodemanager-gree131.out
用jps验证一下,yarn启动成功
[root@gree129 soft]# jps
4464 Jps
4021 ResourceManager
4126 NodeManager
感谢众多博主的帮助,希望能帮到一点其他人,与大家共同进步!