Reply
New Contributor
Posts: 2
Registered: ‎08-22-2014

Getting could not find hostname or IP address of SCM server error during CDH installation

Hello ,

I've installed Cloudera manager 4.8.1 . I am trying to install the CDH and other components where in i get the following error message
"Installation failed. Failed to execute installation script." . When i Click on "Details" link , able to see below error details . Could you please assit me on this.

 

Not sure i miss some basic information. I am a beginner.:)

 

/tmp/scm_prepare_node.rtuY9525
/tmp/scm_prepare_node.rtuY9525/scm_prepare_node.sh: could not find hostname or IP address of SCM server
usage: /tmp/scm_prepare_node.rtuY9525/scm_prepare_node.sh [options]

Prepares this node for use by Cloudera Service and Configuration Manager (SCM):
o Installs necessary SCM agent packages.
o Installs necessary CDH packages.
o Configures the SCM agent.
o Starts the SCM agent.

Cloudera Employee
Posts: 578
Registered: ‎01-20-2014

Re: Getting could not find hostname or IP address of SCM server error during CDH installation

Hello Venkat,

 

"could not find hostname or IP address of SCM server" would normally mean that the host's name is not set up correctly.

 

Run the following commands and let me know what it says:

# hostname -f

#cat /etc/hosts

# python -c "import socket; print socket.getfqdn(); print socket.gethostbyname(socket.getfqdn())"

Regards
Gautam

Regards,
Gautam Gopalakrishnan
New Contributor
Posts: 2
Registered: ‎08-22-2014

Re: Getting could not find hostname or IP address of SCM server error during CDH installation

Thanks Gautam to look into the issue.

 

I use two machines for clustering. Cloud era manager is installed on the below machine and i ran the command you provided.Below is the result

----------------------------

[root@ofss2311682 hadoop]# hostname -f
ofss2311682.in.oracle.com
[root@ofss2311682 hadoop]# cat /etc/hosts
# HEADER: This file was autogenerated at Fri Aug 22 10:59:22 +0000 2014
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain loghost localhost
10.184.153.71 ofss2311682.in.oracle.com ofss2311682
#127.0.0.1 localhost.localdomain loghost localhost
127.0.0.1 localhost.localdomain loghost localhost
[root@ofss2311682 hadoop]# python -c "import socket; print socket.getfqdn(); print socket.gethostbyname(socket.getfqdn())"
ofss2311682.in.oracle.com
10.184.153.71
[root@ofss2311682 hadoop]#

-------------------------------

Second Machine - 

 

[root@ofss220385 etc]# hostname -f
ofss220385.in.oracle.com
[root@ofss220385 etc]# cat /etc/hosts
# HEADER: This file was autogenerated at Fri Aug 22 10:36:34 +0000 2014
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain loghost localhost
#10.184.135.19 localhost.in.oracle.com localhost
10.184.135.19 ofss220385.in.oracle.com ofss220385
#127.0.0.1 localhost.localdomain loghost localhost
127.0.0.1 localhost.localdomain loghost localhost
[root@ofss220385 etc]# python -c "import socket; print socket.getfqdn(); print socket.gethostbyname(socket.getfqdn())"
ofss220385.in.oracle.com
10.184.135.19
[root@ofss220385 etc]#

Highlighted
Explorer
Posts: 6
Registered: ‎03-31-2018

Re: Getting could not find hostname or IP address of SCM server error during CDH installation

cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.123.0.4 instance-1.c.grand-master-123456.internal instance-1 # Added by Google
345.678.901.234 metadata.google.internal # Added by Google


cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost

python -c "import socket; print socket.getfqdn(); print socket.gethostbyname(socket.getfqdn())";
instance-1.c.grand-master-123456.internal
10.123.0.4

what do I need to do?
Posts: 945
Topics: 1
Kudos: 222
Solutions: 119
Registered: ‎04-22-2014

Re: Getting could not find hostname or IP address of SCM server error during CDH installation

@Genthandsome,

 

We are happy to help, but need to know more.

 

What steps have you taken and what problem do you observe?   Please provide logs or screen shots that show how you detected the problem.

 

 

Announcements