ssh: Name or service not known

ssh: Could not resolve hostname DataNode1: Name or service not known

When SSH connects to other nodes in the process of building Hadoop cluster

ssh hadoop@DataNode1

Error: SSH: could not resolve host name datanode1: name or service not known

——–

Solution:

The related configuration file of Linux host name is/etc/hosts

In this file, you need to configure not only the local IP and the host name, but also the IP and the host name of the connecting node

Similar Posts: