ssh: Could not resolve hostname DataNode1: Name or service not known
搭建hadoop集群过程中 ssh连接其他节点时
ssh hadoop@DataNode1
报错 ssh: Could not resolve hostname DataNode1: Name or service not known
--------
解决:
linux主机名的相关配置文件就是/etc/hosts
这个文件里不光要配置本机ip和主机名,还要配置连接节点的ip和主机名