Error:ssh: Could not resolve hostname hadoop03: Name or service not known lost con…
将服务器hostname与对应的IP地址加到文件名/etc/hosts中。
如:127.0.0.1 localhost
192.168.80.101 hadoop101
例如我的:
192.168.1.101 hadoop01
192.168.1.102 hadoop02
192.168.1.103 hadoop03
192.168.1.104 hadoop04
192.168.1.105 hadoop05
192.168.1.106 hadoop06
192.168.1.107 hadoop07
192.168.1.108 hadoop08