基于yum的方式安装Cloudera Manager Server(使用Mysql 8.0版本)

                                       作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

 

 

 

一.安装和配置元数据库

1>.部署MySQL数据库

  我们应启动的5台服务器中选出来2台服务做MySQL主从同步。我们把mysql服务安装在node101.yinzhengjie.org.cn上。至于MySQL的部署方式并不是本片博客的重点,不过可参考我之前的笔记:使用二进制安装包的方式单机部署MySQL8.0.13

  由于这个元数据库还是比较重要的,在生产环境使用中,建议使用MySQL的复制机制部署一个主从复制。或者使用Keepalived+MySQL部署一个主主双活的数据库,以提升其可用性。

2>.配置元数据库

  创建所需的表和账号。首先我们修改root的密码。接着创建scm,rman,hive,oozie,hue,sentry等6套库和用户,分别用户Cloudera Manager,Reports Manager,hive,oozie,hue,sentry存储数据。

[root@node101 ~]# mysql -uroot -pyinzhengjie
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 8.0.15 MySQL Community Server - GPL

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
mysql> CREATE DATABASE scm DEFAULT CHARACTER SET UTF8;
Query OK, 1 row affected, 1 warning (0.01 sec)

mysql> 
mysql> CREATE USER scm@'%' IDENTIFIED WITH mysql_native_password BY 'yinzhengjie';
Query OK, 0 rows affected (0.01 sec)

mysql> 
mysql> GRANT ALL PRIVILEGES ON scm.* TO scm@'%';
Query OK, 0 rows affected (0.01 sec)

mysql>
mysql> CREATE DATABASE rman DEFAULT CHARACTER SET UTF8;    
Query OK, 1 row affected, 1 warning (0.01 sec)

mysql> CREATE USER rman@'%' IDENTIFIED WITH mysql_native_password BY 'yinzhengjie';   
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON rman.* TO rman@'%';
Query OK, 0 rows affected (0.00 sec)

mysql> 
创建Reports Manager所需要的库和用户

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2021-11-26
  • 2022-01-03
  • 2021-09-19
  • 2021-12-20
  • 2022-12-23
猜你喜欢
  • 2021-06-09
  • 2021-06-16
  • 2022-12-23
  • 2022-03-04
  • 2021-05-27
  • 2021-06-10
相关资源
相似解决方案