Follow

Receiving a "cannot resolve <hostname>": unknown host

Issue

When attempting to install the Interset software via the Interset installation wizard, the following error is outputted:

  • ERROR: ssh: Could not resolve hostname <INTERSET_NODE_FQDN>: Name or service not known
  • ERROR: ssh: Could not resolve hostname <INTERSET_NODE_FQDN>:: Name or service not known

Cause

This is normally caused by a DNS resolution issue, or the node FQDN was entered incorrectly into the Interset config file. 

Resolution Steps

There are several steps to take in order to validate and ensure Ambari has access to all necessary nodes in the Interset cluster. Please perform the steps in the following order:

  1. Validate each FQDN node
  2. Ping other node(s)/system(s)
  3. Check DNS configuration

Validate each FQDN node

  1. Log on to the Ambari node as the Interset user
  2. On the Ambari node, type in the following command to navigate to the config file that is located in /tmp/interset_installer/etc/
    • cd /tmp/interset_installer/etc/
  3. In the directory open up the config file using the desired text editing tool (vi is usually a safe bet)
  4. Validate the FQDN values that was entered into AMBARI, COMPUTE, ENDPOINT, MASTER, REPORTING, SEARCH, STREAM.
  5. Once validated and /or modified (if required), save and exit the config file

Ping other node(s)/system(s)

  1. Log on to the Ambari node as the Interset user
  2. On the Ambari node, attempt to ping other node(s) in the Interset cluster, along with systems that are NO T in the Interset cluster. The command to ping is:
    • ping <node_FQDN> 

Check DNS configuration

  1. Log on to the Ambari node as the Interset user
  2. Type in the following command to display the content of the conf that is located in /etc/ directory:
    • sudo cat /etc/resolv.conf
  3. Ensure the DNS configuration outputted is pointed to the correct DNS Servers within the environment.
  4. If DNS is incorrect, edit the conf that is located in /etc with the desired editing tool
  5. Once configuration changes are made, save and exit theconf file

Applies To

  • Interset 5.4.x or higher
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments