Cloudera Manager Server安装(bigdata01)
sudo yum install -y cloudera-manager-server
到SQL的服务器上,创建临时访问权限(bigdata02/03)
sudo mysql -uroot -pRoot123456!
# 两个都创建以下,或者知道主数据库,到主数据库上建就行了
mysql> grant all on *.* to 'scm'@'%' identified by 'Root123456!' with grant option;
mysql> flush privileges;
mysql> exit;
在cloudera Manager Server主机(bigdata01)运行以下命令(scm数据库必须不存在):必须授权主机的ip可以访问VIP的数据库,如果一直报数据库的错,到mysql.user这个表中把user=''的数据给删了
#有可能会报jdbc连接失败,scm用户连接不上,没关系可略过只要/etc/cloudera-scm-server/db.properties文件有把相关信息写进去就行
sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql -h 192.168.88.210 -uscm -pRoot123456! --scm-host 192.168.88.201 scm scm Root123456!
#验证 1、如图查db.properties文件 2、查数据库是否又scm库创建
sudo cat /etc/cloudera-scm-server/db.properties
mysql> show databases; #mysql主机执行
启动 Cloudera Manager Server
sudo systemctl start cloudera-scm-server.service
sudo systemctl enable cloudera-scm-server
#sudo systemctl list-unit-files | grep enable
#sudo systemctl restart cloudera-scm-server.service
#sudo systemctl status cloudera-scm-server
#sudo tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log
验证
Cloudera Manager Agent安装(bigdata01/02/03)
sudo yum install -y cloudera-manager-agent
sudo vi /etc/cloudera-scm-agent/config.ini
sudo systemctl start cloudera-scm-agent
sudo systemctl enable cloudera-scm-agent
# sudo systemctl restart cloudera-scm-agent
# sudo systemctl status cloudera-scm-agent
# sudo tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log
验证
(原创文章:如果有需要,请留言告知)