1.yum源搭建
yum install createrepo –y
下载相关软件包使用
yum install --downloadonly --downloaddir=/opt/t1 mod_ssl
rpm -Uvh --force --nodeps *rpm
yum源
[root@mysql71 opt]# cat /etc/yum.repos.d/
cloudera-manager.repo cloudera-manager.repo.~1~ index.html
[root@mysql71 opt]# cat /etc/yum.repos.d/cloudera-manager.repo
[cloudera-manager]
name = Cloudera Manager, Version 5.16.2
baseurl = http://172.16.244.71/cm/
gpgcheck = 0
yum源文件查看
[root@mysql71 opt]# cd /var/
account/ atlassian/ crash/ empty/ gopher/ lib/ lock/ mail/ opt/ run/ target/ www/
adm/ cache/ db/ games/ kerberos/ local/ log/ nis/ preserve/ spool/ tmp/ yp/
[root@mysql71 opt]# cd /var/www/html/
[root@mysql71 html]# ll
total 0
drwxr-xr-x 2 root root 177 Dec 20 14:23 cdh_parcel
drwxr-xr-x 4 root root 34 Dec 20 14:38 cm
[root@mysql71 html]# cd cm/
[root@mysql71 cm]# ll
total 0
drwxr-xr-x 2 root root 190 Dec 20 14:32 repodata
drwxr-xr-x 3 root root 20 Dec 20 14:37 RPMS
[root@mysql71 cm]# cd RPMS/
[root@mysql71 RPMS]# ll
total 12
drwxr-xr-x 2 root root 8192 Dec 20 15:18 x86_64
[root@mysql71 RPMS]# cd ../repodata/
[root@mysql71 repodata]# ll
total 164
-rw-r--r-- 1 root root 131744 Dec 20 14:31 filelists.xml.gz
-rw-r--r-- 1 root root 198 Dec 20 14:31 filelists.xml.gz.asc
-rw-r--r-- 1 root root 619 Dec 20 14:31 other.xml.gz
-rw-r--r-- 1 root root 198 Dec 20 14:31 other.xml.gz.asc
-rw-r--r-- 1 root root 4500 Dec 20 14:31 primary.xml.gz
-rw-r--r-- 1 root root 198 Dec 20 14:31 primary.xml.gz.asc
-rw-r--r-- 1 root root 951 Dec 20 14:32 repomd.xml
-rw-r--r-- 1 root root 198 Dec 20 14:32 repomd.xml.asc
2.系统配置
#作用是控制应用数据在物理内存和虚拟内存之间的交换,值越低,交换的越少。默认值为60
echo 10 > /proc/sys/vm/swappiness
#关闭大页面压缩
echo never > /sys/kernel/mm/transparent_hugepage/defrag
echo never > /sys/kernel/mm/transparent_hugepage/enabled
#修改系统最大打开数
vi /etc/security/limits.conf
End of file
- soft nofile 265535
- hard nofile 265535
#修改系统支持的最大进程数(默认1024)
vi /etc/security/limits.d/90-nproc.conf
* soft nproc 265535
root soft nproc unlimited
3.
关闭selinux服务
关闭firewalld防护墙服务
安装ntp
安装httpd
安装jdk
4.添加mysql驱动
cd /usr/share/java
wget http://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.37.zip
unzip mysql-connector-java-5.1.37.zip
cd mysql-connector-java-5.1.37
cp mysql-connector-java-5.1.37-bin.jar ../mysql-connector-java.jar
5.tar zxvf /opt/cloudera-manager-el6-cm5.15.2_x86_64.tar.gz -C /opt
启动
/opt/cm-5.16.2/etc/init.d/cloudera-scm-server start