客快物流大数据项目(三十三):安装Server和Agent

2022-02-24 14:10:42 浏览数 (1)

安装Server和Agent

一、安装Server服务

yum install -y oracle-j2sdk1.8-1.8.0 update181-1.x86_64 yum install -y enterprise-debuginfo-6.2.1-1426065.el7.x86_64 yum install -y cloudera-manager-server-6.2.1-1426065.el7.x86_64 yum install -y cloudera-manager-server-db-2-6.2.1-1426065.el7.x86_64

注意:如果在yum源中添加了新的包时: 1.需要删除之前的repodata文件后,重新生成; 2.重启httpd服务 3.清除yum缓存 yum clean all

二、设置元数据库为mysql

设置元数据库为mysql--前提是安装ClouderaManager Server服务

/opt/cloudera/cm/schema/scm_prepare_database.sh -h localhost mysql scm root 123456

旧版本CM:

/usr/share/cmf/schema/scm_prepare_database.sh -h localhost mysql scm root 123456

如果提示ERROR JDBC Driver com.mysql.jdbc.Driver not found,需要上传mysql驱动包jar到/opt/cloudera/cm/lib目录下。

Mysql驱动在资料中已提供:

查看:cat /etc/cloudera-scm-server/db.properties

三、​​​​​​​启动CM(Cloudera Manager)服务端

启动CMServer进程:systemctl start cloudera-scm-server

查看CMServer状态:systemctl status cloudera-scm-server

查看启动日志:tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log

查看端口号是否已经运行:netstat -an | grep 7180

启动CMAgent进程:systemctl start cloudera-scm-agent

查询CMAgent状态:systemctl status cloudera-scm-agent

0 人点赞