I. Basic Environment Configuration
1. Configure the relevant network environment so that the host can access the Internet
server:192.168.183.151
agent1:192.168.183.152
agent2:192.168.183.153
[Root@agent1 ~]# Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Onboot=yes
Nm_controlled=yes
Bootproto=static
ipaddr=192.168.183.152
gateway=192.168.183.2
netmask=255.255.255.0
dns=8.8.8.8
2.service Network Restart
If there appears to be no problem with eth0, empty the/etc/udev/rules.d/70-persistent-net-rules file and restart the system
Ping www.baidu.com
If you can ping, you can access the Internet
3.vi/etc/hosts Configuring the Hosts file to add
192.168.183.151 Server
192.168.183.152 Agent1
192.168.183.153 Agent2
4.vi/etc/sysconfig/network Modifying host Names
5. Turn off the Firewall Setup command
Close SELinux vi/etc/selinux/config selinux=disabled
6. Upgrade the OpenSSL version of Yum upgrade OpenSSL
7. Turn off THP
Vi/etc/grub.conf adding Transparent_hugepage=never
8. Start NTPD to avoid ntpd not running on 3 hosts
9. Disable PackageKit to avoid being locked during Yum installation
11.Python required in version 2.6 (default 2.6.6)
12. Configuring SSH Key-Free Login
Server node
SSH-KEYGEN-T RSA all the way to return
Cd. SSH
Cat Id_rsa.pub >> Authorized_keys
chmod ~/.ssh/authorized_keys
SCP authorized_keys root@agent1:~/Enter user password
SCP Authorized_keys root@agent2:~/
Agent Node
Generate key in terminal, command as follows (click Enter to generate key)
SSH-KEYGEN-T RSA
Move the Authorized_keys file to the. SSH directory
MV Authorized_keys ~/.ssh/
To modify the permissions of the Authorized_keys file, the command is as follows:
[Zkpk@slave ~]$ CD ~/.ssh
[Zkpk@slave ssh]$ chmod-Authorized_keys
Use the SSH agent1 agent2 command to determine if the login was successful
Two. Ambari Installation
1. Download the Ambari Public library file
wget Http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.0.1/ambari.repo
2. Copy the downloaded Ambari.repo file to the Linux system directory/etc/yum.repos.d/
3.yum Clean all empties the cache
Yum List|grep Ambari If you can see a list of the corresponding versions of the installation package for Ambari, the public library is configured successfully
4.yum Install Ambari-server Installation
5.ambari-server Setup configuration (default installation uses Oracle's jdk,postgres database, login password is admin/admin, user account is root)
6.ambari-server Start (local access to localhost:8080, the login interface is installed successfully)
Reference: http://blog.csdn.net/wang_zhenwei/article/details/53198988