Linux搭建大数据集群必备知识

1.设置hostname: hostnamectl set-hostname xxx


2.linux7安装CDH必备库

yum install redhat-lsb  
yum install mod_ssl
yum install openssl-devel
yum install MySQL-python

yum install python-psycopg2

yum install postgresql-server


3.关闭seLinux: vim /etc/sysconfig/selinux

4.修改host文件:vim /etc/hosts

SELINUX=disabled


5. 虚拟机交换内存设置

sysctl vm.swappiness=0

vim /etc/sysctl.conf

vm.swappiness=0

页面压缩

vim /etc/rc.local 

echo never > /sys/kernel/mm/transparent_hugepage/defrag
echo never > /sys/kernel/mm/transparent_hugepage/enabled

你可能感兴趣的:(Linux搭建大数据集群必备知识)