[root@hadoop001 cdh5162]# scp cloudera-manager-centos7-cm5.16.2_x86_64.tar.gz hadoop002:~/cdh5162/
[root@hadoop001 cdh5162]# scp cloudera-manager-centos7-cm5.16.2_x86_64.tar.gz hadoop003:~/cdh5162/
[root@hadoop001 cdh5162]# mkdir /opt/cloudera-manager
[root@hadoop001 cdh5162]# tar -xf cloudera-manager-centos7-cm5.16.2_x86_64.tar.gz -C /opt/cloudera-manager/
[root@hadoop001 cdh5162]# sed -i "s/server_host=localhost/server_host=hadoop001/g" /opt/cloudera-manager/cm-5.16.2/etc/cloudera-scm-agent/config.ini
[root@hadoop001 cloudera-scm-server]# vi /opt/cloudera-manager/cm-5.16.2/etc/cloudera-scm-server/db.properties
com.cloudera.cmf.db.type=mysql
com.cloudera.cmf.db.host=hadoop001
com.cloudera.cmf.db.name=cmf
com.cloudera.cmf.db.user=cmf
com.cloudera.cmf.db.password=cmf
com.cloudera.cmf.db.setupType=EXTERNAL
[root@hadoop001 cloudera-scm-server]# useradd --system --home=/opt/cloudera-manager/cm-5.16.2/run/cloudera-scm-server/ --no-create-home --shell=/bin/false --comment "Cloudera SCM User" cloudera-scm
[root@hadoop001 cloudera-scm-server]# chown -R cloudera-scm:cloudera-scm /opt/cloudera-manager
[root@hadoop001 cloudera-scm-server]# mkdir -p /opt/cloudera/parcel-repo
[root@hadoop001 cdh5162]# cp CDH-5.16.2-1.cdh5.16.2.p0.8-el7.parcel /opt/cloudera/parcel-repo/
#切记cp时,重命名去掉1,不然在部署过程CM认为如上⽂件下载未完整,会持续下载
[root@hadoop001 cdh5162]# cp CDH-5.16.2-1.cdh5.16.2.p0.8-el7.parcel.sha1 /opt/cloudera/parcel-repo/CDH-5.16.2-1.cdh5.16.2.p0.8-el7.parcel.sha
[root@hadoop001 cdh5162]# cp manifest.json /opt/cloudera/parcel-repo/
[root@hadoop001 parcel-repo]# ll
total 2082872
-rw-r--r-- 1 root root 2132782197 May 17 17:29 CDH-5.16.2-1.cdh5.16.2.p0.8-el7.parcel
-rw-r--r-- 1 root root 41 May 17 17:30 CDH-5.16.2-1.cdh5.16.2.p0.8-el7.parcel.sha
-rw-r--r-- 1 root root 66804 May 17 17:30 manifest.json
[root@hadoop001 parcel-repo]# chown -R cloudera-scm:cloudera-scm /opt/cloudera/
[root@hadoop001 parcel-repo]# mkdir -p /opt/cloudera/parcels
[root@hadoop001 parcel-repo]# chown -R cloudera-scm:cloudera-scm /opt/cloudera/
[root@hadoop001 parcel-repo]# /opt/cloudera-manager/cm-5.16.2/etc/init.d/cloudera-scm-server start
Starting cloudera-scm-server: [ OK ]
阿⾥云web界⾯,设置该hadoop001节点防⽕墙放开7180端⼝
[root@hadoop001 parcel-repo]# /opt/cloudera-manager/cm-5.16.2/etc/init.d/cloudera-scm-agent start
Starting cloudera-scm-agent: [ OK ]
http://hadoop001:7180/
账号密码:admin/admin
[root@hadoop001 parcel-repo]# vi /etc/sysctl.conf
vm.swappiness=10
[root@hadoop001 parcel-repo]# vi /etc/rc.d/rc.local
echo never > /sys/kernel/mm/transparent_hugepage/defrag
echo never > /sys/kernel/mm/transparent_hugepage/enabled
# centos7.x系统,需要为"/etc/rc.d/rc.local"⽂件赋予执⾏权限
[root@hadoop001 parcel-repo]# chmod +x /etc/rc.d/rc.local