Closed marianomier closed 6 years ago
Preinstallation Labs
Checking vm.swappiness
echo "vm.swappiness = 1" >> /etc/sysctl.conf
echo 1 > /proc/sys/vm/swappiness
Mounting disks
sudo lsblk -fs
sudo parted /dev/xvdb mklabel gpt
sudo parted -a opt /dev/xvdb mkpart primary ext4 0% 100
sudo mkfs.ext4 -L datapartition /dev/xvdb
vi /etc/fstab
/dev/xvdb /data00 ext4 defaults,noatime 1 2
/dev/xvdc /data01 ext4 defaults,noatime 1 2
sudo mount -o defaults /dev/xvdb /data00
sudo mount -o defaults /dev/xvdc /data01
Disabling Transparent Huge Pages
echo never > /sys/kernel/mm/transparent_hugepage/defrag
echo never > /sys/kernel/mm/transparent_hugepage/enabled</code
vi /etc/rc.local
Adding to rc.local
/sys/kernel/mm/transparent_hugepage/defrag
/sys/kernel/mm/transparent_hugepage/enabled
Network Configuration
nslookup ip-172-31-63-6
dig -x 172.31.63.6
Showing ntpd service
Installing MariaDB Database
yum install mariadb-server
vi /etc/my.cnf
Replacing with code /my.cnf
systemctl start mariadb
sudo /usr/bin/mysql_secure_installation
Creating Databases for Hadoop services
Preinstallation Labs
Checking vm.swappiness
echo "vm.swappiness = 1" >> /etc/sysctl.conf
echo 1 > /proc/sys/vm/swappiness
Mounting disks
sudo lsblk -fs
sudo parted /dev/xvdb mklabel gpt
sudo parted -a opt /dev/xvdb mkpart primary ext4 0% 100
sudo mkfs.ext4 -L datapartition /dev/xvdb
vi /etc/fstab
/dev/xvdb /data00 ext4 defaults,noatime 1 2
/dev/xvdc /data01 ext4 defaults,noatime 1 2
sudo mount -o defaults /dev/xvdb /data00
sudo mount -o defaults /dev/xvdc /data01
Disabling Transparent Huge Pages
echo never > /sys/kernel/mm/transparent_hugepage/defrag
echo never > /sys/kernel/mm/transparent_hugepage/enabled</code
vi /etc/rc.local
Adding to rc.local
/sys/kernel/mm/transparent_hugepage/defrag
/sys/kernel/mm/transparent_hugepage/enabled
Network Configuration
nslookup ip-172-31-63-6
dig -x 172.31.63.6
Showing ntpd service
Installing MariaDB Database
yum install mariadb-server
vi /etc/my.cnf
Replacing with code /my.cnf
systemctl start mariadb
sudo /usr/bin/mysql_secure_installation
Creating Databases for Hadoop services