Cloudera Manager fails to add hosts

后端 未结 6 489
借酒劲吻你
借酒劲吻你 2020-12-28 18:04

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

6条回答
  •  盖世英雄少女心
    2020-12-28 19:00

    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.

提交回复
热议问题