![ssh:无法解析主机名](https://linux22.com/image/915409/ssh%EF%BC%9A%E6%97%A0%E6%B3%95%E8%A7%A3%E6%9E%90%E4%B8%BB%E6%9C%BA%E5%90%8D.png)
我尝试输入此命令:
start-dfs.sh
输出如下:
Starting namenodes on [HadoopMaster] HadoopMaster: ssh: Could not resolve hostname hadoopmaster: Name or service not known
我错过了什么?我会很感激每一个答案
答案1
确保主机可以找到该节点。
vim /etc/hosts
然后添加你的 ip 和主机名
192.168.0.2 node1
192.168.0.3 node2