ambari deploy Hadoop clusters (1)

This embodiment provides a use hortonworks ambari mounting method, and very detailed. The following steps are mounted on the centos7.

Basic Configuration:

1. Modify the host name of the computer

hostnamectl set-hostname xxx 
or vi / etc / hostname Review

2. Edit the file / etc / sysconfig / network, add the following two lines

NETWORKING=yes
HOSTNAME=xxx

3. Edit the file / etc / sysconfig / network-scripts / ifcfg-ens33 (ens33 is the name of the card, the actual may vary), the value of ONBOOT changed to yes. Reboot the system.

4. Install the software

yum -y install gcc gcc-c++ kernel-devel
yum -y install rpm-build
yum -y install net-tools

5. Set the maximum number of (at least 10,000) to open the file. If the result of the first display command is greater than 10000, the second is not performed.

ulimit -Sn
ulimit -n 10000

6. Set Time Synchronization

yum install -y ntp
systemctl enable ntpd
systemctl start ntpd
timedatectl set-timezone Asia/Shanghai

7. Pause firewall

systemctl disable firewalld
service firewalld stop

8. Disable SELinux. Edit / etc / selinux / config, set the following value

SELINUX = disabled 
Note here that the field not error correction, error correction can not be switched to restart

9. Disable PackageKit. Edit /etc/yum/pluginconf.d/langpacks.conf, set the following values:

enabled=0

10. Free adhesion provided between the landing of each host.

ssh-keygen -t rsa
ssh-copy-id xxx

11. Ensure that the .ssh authorized_keys and have the correct access control

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

12. Use SSH login once other hosts. Because the first time you need to enter a password.

ssh root@<remote.target.host>

13. Install JDK, and set the environment variable

JAVA_HOME = Export / opt / Programs / jdk1.8.0_171 
Export the PATH =:. $ JAVA_HOME / bin: $ the PATH 
Export the CLASSPATH =:. $ JAVA_HOME / lib / dt.jar: $ JAVA_HOME / lib / tools.jar 

here NOTE: If Do not put JAVA_HOME / root or / home / <hostname> at, because it will create a new user when installing the cluster (no root access), the new user does not have permission to enter other user directories.

 

In addition, if you need a fixed IP,

1. 

cd /etc/sysconfig/network-scripts/

2. Modify the appropriate file 

BOOTPROTO = static # static 
NETMASK = 255.255.255.0 # mask 
IPADDR = 192.168.43.96 # IP 
ONBOOT = yes 
GATEWAY = # network 196.168.43.2

  

Guess you like

Origin www.cnblogs.com/MY0213/p/11262315.html