During installation of CDH 5.7.0,
I faced this issue and couldn't find out correct soltion.
BEGIN grep server_host=sng-cdh2-1.ebc.cisco.com /etc/cloudera-scm-agent/config.ini
grep: /etc/cloudera-scm-agent/config.ini: No such file or directory
BEGIN sed -e 's/\(server_host=\).*/\1sng-cdh2-1.ebc.cisco.com/' -i /etc/cloudera-scm-agent/config.ini
sed: can't read /etc/cloudera-scm-agent/config.ini: No such file or directory
scm agent could not be configured, giving up
waiting for rollback request
Anyone knows it?
The install script that is run by the "Add new hosts" wizard expects that the installation of the cloudera-manager-agent package has already occurred by the time it gets to the point where it is updating the "config.ini".
Something must have gone wrong in the installation before this point. I'd check the entire install log for clues. The installation of the cloudera-manager-agent package will create /etc/cloudera-scm-agent/config.ini
I went through this post
and ran the below command
python -c "import socket; print socket.getfqdn(); print socket.gethostbyname(socket.getfqdn())"
and returns the correct ip and hostname.
When adding the host, there should be a detailed log you can view in the Cloudera Manager UI. Please provide us with that output so we can review. It is likley the package was not installed.