[关闭]
@zhangyy 2020-06-29T12:12:23.000000Z 字数 4880 阅读 282

CDP DC 的介绍与安装部署

大数据平台构建



一: CDP DC 的介绍

1.1:CDP DC 的版本介绍

  1. CDP DC7.1ClouderaHortonworks合并后,第一个融合CDHHDP所有组件的on-premise并且可用于生产环境的版本,CDP Data Center主要由Cloudera Runtime构成,Cloudera Runtime由超过35个开源项目组成,当然CDP Data Center还包括其它功能如管理功能Cloudera ManagerKey Management,专业支持等,如下图所示:

image.png-109.7kB


二:CDP DC 的集成大数据 的组件版本

  1. Cloudera Runtime的主要组件版本如下图所示:

image.png-67.1kB

image.png-29.1kB


三:CDP DC 的安装

3.1 环境包准备:

  1. jdk:
  2. openjdk8-8.0+232_9-cloudera.x86_64.rpm
  3. CM 部署工具:
  4. cloudera-manager-agent-7.1.1-3274282.el7.x86_64.rpm
  5. cloudera-manager-server-db-2-7.1.1-3274282.el7.x86_64.rpm
  6. cloudera-manager-daemons-7.1.1-3274282.el7.x86_64.rpm
  7. enterprise-debuginfo-7.1.1-3274282.el7.x86_64.rpm
  8. cloudera-manager-server-7.1.1-3274282.el7.x86_64.rpm
  9. 下载地址:
  10. https://archive.cloudera.com/cm7/7.1.1/redhat7/yum/RPMS/x86_64/
  11. CDH部署包:
  12. CDH-7.1.1-1.cdh7.1.1.p0.3266817-el7.parcel
  13. CDH-7.1.1-1.cdh7.1.1.p0.3266817-el7.parcel.sha256
  14. allkeys.asc
  15. manifest.json
  16. 下载地址:
  17. http://archive.cloudera.com/cdh7/7.1.1.0/parcels/
  18. jdbc 驱动:
  19. http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.46/mysql-connector-java-5.1.46.jar
  20. http://archive.cloudera.com/gplextras/misc/ext-2.2.zip

3.2 系统环境初始化

  1. 1、系统主机名:
  2. OS: CentOS7.5x64
  3. 2、主机名:
  4. cat /etc/hosts
  5. 192.168.11.160 dev01.lanxintec.cn
  6. 192.168.11.161 dev02.lanxintec.cn
  7. 192.168.11.162 dev03.lanxintec.cn

3.3 无密钥登录配置

  1. root用户无密钥认证
  2. ssh-keygen ---一直敲回车到最后
  3. cat id_rsa.pub >> authorized_keys
  4. 将所有的公钥导入authorized_keys 分发到 所有的 机器的.ssh/ 下面
  5. 然后测试

image.png-32kB


3.4 firewalld,iptables 与 selinux

  1. 所有节点都要配置:
  2. yum install -y firewall* iptable*
  3. (1) 关闭firewalld
  4. systemctl stop firewalld.service
  5. systemctl disable firewalld.service
  6. firewall-cmd --state
  7. (2) 关闭iptables
  8. iptables -F
  9. systemctl stop iptables.service
  10. service iptables save
  11. systemctl disable iptables.service
  12. (3) 禁用 selinux
  13. sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config
  14. setenforce 0
  15. getenforce 0
  16. sestatus
  17. 重启机器
  18. reboot

image.png-26.5kB


3.5 所有机器更改centos7.6的文件句柄数

  1. vim /etc/security/limits.conf
  2. ---
  3. * soft nofile 65535
  4. * hard nofile 1029345
  5. * soft nproc unlimited
  6. * hard nproc unlimited
  7. * soft memlock unlimited
  8. * hard memlock unlimited
  9. ---

image.png-10.7kB


3.6 时间同步:

  1. 所有机器 yum install chrony*
  2. 1. dev01.lanxintec.cn:
  3. vim /etc/chrony.conf 增加
  4. ----
  5. 注释掉相关默认的server
  6. server ntp1.aliyun.com iburst
  7. allow 192.168.11.0/24
  8. service chronyd start
  9. chkconfig chronyd on
  10. 2. dev02.lanxintec.cn----dev03.lanxintec.cn 同步dev01.lanxintec.cn
  11. vim /etc/chrony.conf
  12. ----
  13. 注释掉默认的server
  14. server 192.168.11.160 iburst
  15. ----
  16. service chronyd stop
  17. service chronyd start
  18. chkconfig chronyd on

image.png-37.2kB

image.png-31.7kB

image.png-36.7kB


3.7:安装jdk

  1. 所用大数据节点都要配置:jdk
  2. rpm -ivh openjdk8-8.0+232_9-cloudera.x86_64.rpm
  3. vim /etc/profile
  4. ---
  5. export JAVA_HOME=/usr/java/jdk1.8.0_232-cloudera
  6. export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
  7. PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
  8. ---
  9. source /etc/profile
  10. java -version

image.png-102.1kB

image.png-31.9kB

image.png-53.5kB


3.8 安装mariadb-server

  1. dev01.lanxintec.cn
  2. yum install -y mariadb-server
  3. service mariadb start
  4. chkconfig mariadb on
  5. mysql_secure_installation
  6. mysql -uroot -pflyfish225

image.png-39.3kB


3.9配置 httpd 分发服务器

  1. dev01.lanxintec.cn:
  2. yum install -y httpd

image.png-38.2kB


  1. vim /etc/httpd/conf/httpd.conf
  2. ----
  3. 修改/etc/httpd/conf/httpd.conf配置文件,在<IfModule mime_module>中修改以下内容
  4. AddType application/x-gzip .gz .tgz .parcel
  5. ----
  6. service httpd start
  7. chkconfig httpd on

image.png-21.5kB


  1. CM7.1.1 分发源
  2. yum install -y createrepo
  3. cd /root/cdh7/
  4. createrepo .
  5. cp -ap cdh7 /var/www/html/

image.png-75.7kB

image.png-62.3kB


  1. vim /etc/yum.repos.d/cloduera-manger.repo
  2. ------
  3. [cmrepo]
  4. name = cm_repo
  5. baseurl =http://192.168.11.160/cdh7
  6. enable = 1
  7. gpgcheck = 0
  8. -----
  9. yum makecache fast

image.png-25.9kB

  1. 所有主机执行命令同步:
  2. rsync -avrzP root@192.168.11.160:/etc/yum.repos.d/cloudera-manager.repo /etc/yum.repos.d/
  3. yum makecache fast

image.png-37.7kB

image.png-41.2kB


3.10 配置mysql-jdbc

  1. cd /usr/share/java/
  2. cp -p mysql-connector-java-8.0.15.jar mysql-connector-java.jar

image.png-21.9kB

四: 安装CDH7.1.1所需环境

4.1:安装所需依赖包

  1. 所有大数据节点都要安装:
  2. yum -y install chkconfig python bind-utils psmisc libxslt zlib sqlite cyrus-sasl-plain cyrus-sasl-gssapi fuse fuse-libs redhat-lsb postgresql* portmap mod_ssl openssl-devel python-psycopg2 MySQL-python

image.png-123.9kB

4.2 安装cloudera-server

  1. yum install -y cloudera-manager-server

image.png-72.8kB

image.png-37.4kB

4.3 在 mysql 当中创建 CM 需要的注册库

  1. # mysql -uroot -pflyfish225
  2. mysql> create database cmf character set utf8;
  3. mysql> grant all privileges on cmf.* to 'cmf'@'%' identified by 'cmf_1234' with grant option;
  4. mysql> grant all privileges on cmf.* to 'cmf'@'dev01.lanxintec.cn' identified by 'cmf_1234' with grant option;
  5. mysql> flush privileges;

image.png-49kB

image.png-28.2kB

4.4 注入CM-server库 与 CM-agent端的server

  1. /opt/cloudera/cm/schema/scm_prepare_database.sh mysql cmf cmf cmf_1234

image.png-41.9kB

五: 配置CDH7.1.1的cloudera-manager安装

5.1 安装启动CM

  1. service cloudera-scm-server start
  2. cd /var/log/cloudera-scm-server/
  3. tail -f cloudera-scm-server.log

image.png-31.4kB

image.png-81.2kB

六: 打开web 安装:

image.png-122.7kB

image.png-202.1kB

image.png-223.1kB

image.png-92.1kB

image.png-100.4kB


image.png-143.3kB

image.png-213.5kB

image.png-90.4kB

image.png-166.8kB

image.png-178.1kB


image.png-154.6kB

image.png-205.2kB

image.png-120kB

image.png-197.5kB


  1. echo never > /sys/kernel/mm/transparent_hugepage/defrag
  2. echo never > /sys/kernel/mm/transparent_hugepage/enabled

image.png-172.6kB

image.png-192.1kB


image.png-235.9kB

image.png-136.3kB

image.png-156.5kB


  1. 注意:Cloudera Management Service中的Activity Monitor现在已经基本上不用,可以不安装该服务。Telemetry Publisher是遥感服务,用于Workload XM通信,如果没有计划使用Workload XM,则不需要安装该服务。ZooKeeper至少安装3节点,需要为奇数节点数。

image.png-208.5kB

  1. create database cdh_hive default character set latin1;
  2. grant all privileges on cdh_hive.* to 'hive'@'%' identified by 'Hive_123' with grant option;
  3. create database cdh_oozie default character set utf8;
  4. grant all privileges on cdh_oozie.* to 'oozie'@'%' identified by 'Oozie_123' with grant option;
  5. create database cdh_hue default character set utf8;
  6. grant all privileges on cdh_hue.* to 'hue'@'%' identified by 'Hue_123' with grant option;
  7. create database cdh_rm default character set utf8;
  8. grant all privileges on cdh_rm.* to 'rm'@'%' identified by 'Rm_123' with grant option;
  9. flush privileges;

image.png-57.4kB

image.png-204.4kB

image.png-247.2kB

image.png-205.5kB

image.png-192.6kB

image.png-304.6kB

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注