Skip to main content
Oren
Bronze III
February 20, 2025
Question

Error while installing Data Services

We have Cloudera Private Cloud 7.1.9

When trying to install Data Services, we get this error:

    "unable to resolve either the CM url, CDP console, or localhost"

We verified DNS settings and the hostname is resolved correctly. 

What can the issue be? where can we find logs with additional details?

error.png

15 replies

DianaTorres
Community Manager
Community Manager
February 20, 2025

@Oren Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our CDP experts @venkatsambath @upadhyayk04  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.

Translate
Regards, Diana Torres, Senior Community Moderator
upadhyayk04
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
February 20, 2025

Hello @Oren 

Thank you for reaching out to the community

Please double-check the following especially vault.localhost.localdomain’s ping should be resolved

 

https://docs.cloudera.com/cdp-private-cloud-data-services/1.5.4/installation-ecs/topics/cdppvc-installation-ecs-steps.html

 

Checks to make sure there are less than 3 nameserver entries in the /etc/resolv.conf file, and checks the connections to the Cloudera Manager cluster and the CDP console. It also checks to see if vault.localhost.localdomain’s ping can be resolved. If not, it is likely that the host /etc/nsswitch.conf file is misconfigured.
If this inspection fails:

Check the /etc/resolv.conf and /etc/nsswitch.conf files and ensure that /etc/resolv.conf does not contain 3 or more nameservers, and that /etc/nsswitch.conf must contain myhostname under the hosts field.
Check to see if the connections were resolved correctly. If connection to the CDP console fails, check to see if your DNS wildcard is configured properly.

 

 Let us know if you have any further queries

Translate
DianaTorres
Community Manager
Community Manager
February 28, 2025

@Oren Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator
shaihavivqlik
Silver ⭐️⭐️
March 2, 2025

Hi @DianaTorres 
unfortunately all listed above is configured correctly.

is there any log where I can check the exact error ?
thanks

shai.

Translate
upadhyayk04
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
March 3, 2025

Hello @shaihavivqlik 

That's really strange. Usually, this error occurs when we cannot lookup 

vault.localhost.localdomain

Can you check your /etc/hosts as well? Also, try pinging your CM server as well

 Something is for sure wrong in the DNS records. I don't we can check any logs as this is failing at the pre-reqs itself

Translate
shaihavivqlik
Silver ⭐️⭐️
March 6, 2025

ping to CM server works just fine, using DNS or IP address.

Translate
upadhyayk04
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
March 7, 2025

Hello,

Thank you for your update

Can you please confirm if you are able to ping localhost 

# nslookup localhost

How many nameservers are present in /etc/resolv.conf

Translate
shaihavivqlik
Silver ⭐️⭐️
March 7, 2025

I get this when running nslookup localhost

Non-authoritative answer:
Name: localhost
Address: 127.0.0.1
** server can't find localhost: SERVFAIL

I have 1 nameserver in resolv.conf

Translate
upadhyayk04
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
March 7, 2025

So here is the error localhost is not resolving 

Please fix the /etc/hosts from any of the working node

Check if the below lines are added or not

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Translate
shaihavivqlik
Silver ⭐️⭐️
March 9, 2025

this is how the hosts file looks:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

 

Translate
upadhyayk04
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
March 9, 2025

Can you please fix the localhost thing

nslookup localhost should resolve

Translate
Rafiy
Silver ⭐️
March 10, 2025

we have passed  all pre-requisistes, still facint the same issue

Translate
upadhyayk04
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
March 10, 2025

Hello @Rafiy 

Can you please which issue are you facing now?


Same one 

    "unable to resolve either the CM url, CDP console, or localhost"

Translate
upadhyayk04
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
March 12, 2025

Hello @shaihavivqlik 

Can you also verify if the wildcard dns is set up correctly 

*.apps.myhostname.com

https://docs.cloudera.com/cdp-private-cloud-data-services/1.5.4/installation-ecs/topics/cdppvc-installation-ds-checklist.html

I faced the same error as you this time, and I had the above mentioned problem so please double check this as well

Translate