Hadoop集群部署后经宏,出現(xiàn)Yarn的節(jié)點(diǎn)都是localhost
源请,從而找不到其他的Node下發(fā)任務(wù)晰绎,出現(xiàn)如下的錯(cuò)誤吧兔。
ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:10020. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
在Yarn Web UI中和yarn node -list
查看滤蝠,
022-09-30 11:48:54,735 INFO client.DefaultNoHARMFailoverProxyProvider: Connecting to ResourceManager at hadoop2/192.168.56.2:8032
Total Nodes:3
Node-Id Node-State Node-Http-Address Number-of-Running-Containers
localhost:42975 RUNNING localhost:8042 0
localhost:41913 RUNNING localhost:8042 0
localhost:36595 RUNNING localhost:8042 0
搜索到的解決方案是把/etc/hosts
中的localhost項(xiàng)給注釋掉踱侣,但是嘗試后發(fā)現(xiàn)不能解決問(wèn)題斥废。
我的服務(wù)器系統(tǒng)是CentOS 8 Stream筒愚,最后的解決方案是直接改主機(jī)名修己。
hostnamectl set-hostname hadoop1
- 修改
/etc/hostname