Created 08-22-2014 05:02 AM
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.
Created 08-24-2014 09:59 PM
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
Created 08-24-2014 10:03 PM
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]#
Created 07-11-2018 03:42 PM
Created 07-12-2018 08:07 AM
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.
Created 07-22-2020 01:52 PM
This bug actually still exists, it happens when the script reads the hosts in the wrong order. If you retry over and over, eventually the script will flip the two values and install:
Detecting Cloudera Manager Server...
BEGIN host -t PTR xxx.xx.xx.xxx
1xx.xx.xx.xxx.in-addr.arpa domain name pointer cdh-mgr.mydomain.corp <--- this is write
1xx.xx.xx.xxx.in-addr.arpa domain name pointer localhost.localdomain. <--- this is wrong
END (0)
using localhost.localdomain as scm server hostname <--- this picked up the last entry
BEGIN which python
/usr/bin/python
It should look like:
Detecting Cloudera Manager Server...
BEGIN host -t PTR xxx.xx.xx.xxx
1xx.xx.xx.xxx.in-addr.arpa domain name pointer localhost.localdomain. <--- this is wrong
1xx.xx.xx.xxx.in-addr.arpa domain name pointer cdh-mgr.mydomain.corp <--- this is write
END (0)
using cdh-mgr.mydomain.corp as scm server hostname <--- this picked up the last entry
BEGIN which python
/usr/bin/python
Created 07-24-2020 02:40 AM
Hello @jpetro416 ,
thank you for reporting the behavior that CM installation fails when it picks up a wrong hostname.
In the log segment you've shared it seems to be there is a dot after localhost.localdomain:
localhost.localdomain.
To alleviate the issue once hit it, please:
Steps were verified for CM6.2.
Please let me know if I've addressed your observation.
Thank you:
Ferenc
Ferenc Erdelyi, Technical Solutions Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: