在线安装
sudo yum install cloudera-manager-daemons cloudera-manager-server
离线安装
资源下载地址 https://archive.cloudera.com/cm6/6.1.0/redhat7/yum/RPMS/x86_64/ 上次下面资源包到cdh1节点 cloudera-manager-server-6.1.0-769885.el7.x86_64.rpm cloudera-manager-server-db-2-6.1.0-769885.el7.x86_64.rpm cloudera-manager-daemons-6.1.0-769885.el7.x86_64.rpm
yum 安装
yum install -y postgresql-sever
rpm -ivh cloudera-manager-daemons-6.1.0-769885.el7.x86_64.rpm
rpm -ivh cloudera-manager-server-6.1.0-769885.el7.x86_64.rpm
rpm -ivh cloudera-manager-server-db-2-6.1.0-769885.el7.x86_64.rpm
copy mysql连接驱动到/usr/share/java中,主要mysql-connector-java.jar如果有版本信息,版本信息必须删除,重命名文件,否则会出现以下错误
Creating SCM configuration file in /etc/cloudera-scm-server Executing: /usr/java/jdk1.8.0_141-cloudera/bin/java -cp /usr/share/java/mysql-connector-java.jar:/usr/share/java/oracle-connector-java.jar:/usr/share/java/postgresql-connector-java.jar:/opt/cloudera/cm/schema/../lib/* com.cloudera.enterprise.dbutil.DbCommandExecutor /etc/cloudera-scm-server/db.properties com.cloudera.cmf.db. [ main] DbCommandExecutor INFO Unable to find JDBC driver for database type: MySQL [ main] DbCommandExecutor ERROR JDBC Driver com.mysql.jdbc.Driver not found. [ main] DbCommandExecutor ERROR Exiting with exit code 3 --> Error 3, giving up (use --force if you wish to ignore the error)
初始化CDH server服务
/opt/cloudera/cm/schema/scm_prepare_database.sh mysql scm scm
开启CDH server服务
systemctl start cloudera-scm-server
查看是否启动正常
sudo tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log当出现以下代码说明成功启动: 2019-02-19 02:03:41,108 INFO WebServerImpl:com.cloudera.server.cmf.WebServerImpl: Started Jetty server.
查看网页版管理:
http://ip:7180