Skip to content

Instantly share code, notes, and snippets.

@chrinide
Created November 19, 2015 02:49
Show Gist options
  • Save chrinide/ac1404f06061dda000d2 to your computer and use it in GitHub Desktop.
Save chrinide/ac1404f06061dda000d2 to your computer and use it in GitHub Desktop.
1. Install Environment (All Hosts)
1.1. Install CentOS-6.5-x86_64-minimal 1 master and 3 slave (static ip: 192.168.10.100 - 192.168.10.103)
# yum install wget -y
1.2. Setup hosts
# vi /etc/hosts
192.168.10.100 master.kxlab.org
192.168.10.101 slave1.kxlab.org
192.168.10.102 slave2.kxlab.org
192.168.10.103 slave3.kxlab.org
# hostname -f
1.3. Setup SSH
# yum upgrade openssl -y
# ssh-keygen
# vi /etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
# service sshd restart
1.4. Setup Passwordless (all hosts)
# scp .ssh/id_rsa.pub [email protected]:.ssh/id_rsa.master.pub
# cat ~/.ssh/id_rsa.master.pub >> ~/.ssh/authorized_keys
# chmod 700 ~/.ssh
# chmod 600 ~/.ssh/authorized_keys
1.5. Install ntp
# yum install ntp -y
# service ntpd start
# chkconfig ntpd on
1.6. Close iptables and SELinux
# chkconfig iptables off
# service iptables stop
# setenforce 0
# umask 022
2. Install Ambari (Master)
# wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.5.1/ambari.repo
# cp ambari.repo /etc/yum.repos.d
# yum repolist
# yum install ambari-server -y
# ambari-server setup
# ambari-server start
3. Setup Hadoop 2.X
3.1. Log into Apache Ambari
Visit http://192.168.10.100:8080
admin/admin
3.2. Welcome page
Cluster name: kxlab
3.3. Select stack
HDP2.1
3.4. Install Options
hosts:
master.kxlab.org
slave1.kxlab.org
slave2.kxlab.org
slave3.kxlab.org
upload id_rsa
3.5. Confirm Hosts
Status: Success
3.6. Choose Services
All
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment