Cloudera Manager Hadoop部署前主机准备

原创
2016/12/27 18:05
阅读数 368
root用户下操作
>>>主机名
# hostname COLLECTOR01
# vi /etc/sysconfig/network
>>>Ip与主机名映射
# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.211.11 COLLECTOR01
>>>禁用IPv6
# echo "alias net-pf-10 off" >> /etc/modprobe.d/dist.conf
# echo "alias ipv6 off" >> /etc/modprobe.d/dist.conf
>>>确认logonuser用户密码与其他机器设置一致,不一致修改
# passwd logonuser
>>>配置普通用户的sudo权限
# vi /etc/sudoers
logonuser ALL=(root)NOPASSWD:ALL
>>>关闭防火墙
# service iptables stop
# chkconfig iptables off
>>>禁用Selinux
# vi /etc/sysconfig/selinux
SELINUX=disabled
>>>卸载JDK
# rpm -qa|grep java
# rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64 tzdata-java-2012c-1.el6.noarch
>>>文件打开数量
$ ulimit -a 
>>>用户最大进程数、打开文件数
$ ulimit -u
>>>设置
# vi /etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
* soft nproc 32000
* hard nproc 32000
# vi /etc/security/limits.d/90-nproc.conf
*          soft    nproc     32000
>>>时间同步
# vi /etc/ntp.conf
server 192.168.26.11
# service ntpd restart
>>>查看同步结果
# ntpstat
>>>设置开机启动
# chkconfig ntpd on
>>>其他设置
# sudo sysctl -w vm.swappiness=0
# echo "vm.swappiness=0"  >> /etc/sysctl.conf
# echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag
# vi /etc/rc.local
echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag
>>>查询redhat原有的yum
# rpm -qa |grep yum
>>>删除redhat原有的yum
# rpm -aq|grep yum|xargs rpm -e --nodeps
# whereis yum
yum: /etc/yum
# rm -rf /etc/yum
>>>安装yum的rpm包
rpm -ivh /opt/disk/backup/soft/yum/python* --nodeps
rpm -ivh /opt/disk/backup/soft/yum/yum* --nodeps
>>>更改yum源
# cd /etc/yum.repos.d/
# rm -rf *
# vi /etc/yum.repos.d/cloudera-manager.repo
[cloudera-manager]
name = Cloudera Manager, Version 5.3.6
baseurl = http://COLLECTOR01/cm5/redhat/6/x86_64/cm/5/
gpgcheck = 0

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部