I\'ve followed the installation procedure from here and when I reach the Inspect Role Assignments stage I only see one managed host: localhost.localdo
To solve this error, I did three things:
1) vim /etc/cloudera-scm-agent/config.ini Originally it was
# Hostname of Cloudera SCM Server
server_host=localhost
Changed hostname to:
server_host=manager
Also make sure the 'manager' is added in the /etc/hosts file
2) Installed java in the /usr/local/java/jdk1.7xxx directory In ~/.bash_profile Included following
export JAVA_HOME=/usr/local/java/jdk1.7xxx
Soft Link can also be used for this purpose:
export PATH=$PATH:$JAVA_HOME:bin
Cloudera probably takes the java path as '/usr/java'. So I created a symbolic link in the /usr directory.
3) When it still did not work, I installed MySQL Connector using the following:
yum install mysql-connector-java
Restart server and restart agents. It worked for me then.