安装
https://docs.cloudera.com/documentation/enterprise/5-10-x/topics/how_to_configure_cm_tls.html
1 安装daemons
执行以下命令即可安装daemons:
rpm -ivh cloudera-manager-daemons-6.2.0-968826.el7.x86_64.rpm
2 安装agent
执行以下命令即可安装agent:
rpm -ivh cloudera-manager-agent-6.2.0-968826.el7.x86_64.rpm
注:当前环境可能由于缺少agent需要依赖的组件导致安装失败,根据提示进行安装即可。博主简单整理了一下依赖的组件和对应的安装命令(可能不全,根据实际环境安装依赖):
httpd yum -y install httpd
mod_ssl yum -y install mod_ssl
openssl-devel yum -y install openssl-devel
python-psycopg2 yum -y install python-psycopg2
MySQL-python yum -y install MySQL-python
libpq.so.5()(64bit) yum -y install postgresql-libs.x86_64
init-functions yum -y install redhat-lsb
如果还有异常,则根据提示进行解决。
3 安装 server
执行以下命令即可安装server:
rpm -ivh cloudera-manager-server-6.2.0-968826.el7.x86_64.rpm
4 创建Cloudera需要的数据库
下图是官网列出的服务和其对应的数据库以及用户,但是关于database名和user,我们不一定要完全照着这个来进行配置,这里为了方便,我还是用root用户。
创建SQL语句如下:
mysql> CREATE DATABASE scm DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE DATABASE amon DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE DATABASE rman DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE DATABASE hue DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE DATABASE metastore DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE DATABASE sentry DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE DATABASE nav DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE DATABASE navms DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.01 sec)
mysql> CREATE DATABASE oozie DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| amon |
| hue |
| metastore |
| mysql |
| nav |
| navms |
| oozie |
| performance_schema |
| rman |
| scm |
| sentry |
| sys |
+--------------------+
13 rows in set (0.00 sec)
mysql>