您好,登錄后才能下訂單哦!
這篇文章主要介紹Cloudera Manager Hadoop部署前主機需要準備的配置,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
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
以上是“Cloudera Manager Hadoop部署前主機需要準備的配置”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。