Skip to content

Instantly share code, notes, and snippets.

@vuquangchien
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vuquangchien/9360677 to your computer and use it in GitHub Desktop.
Save vuquangchien/9360677 to your computer and use it in GitHub Desktop.
Hortonworks installation guide

Run on all nodes

1/ Set static IP of the machine

vim /etc/sysconfig/network-scripts/ifcfg-eth0

#Change the following properties
ONBOOT=yes
IPADDR=10.1.1.12.xxx
NETMASK=255.255.255.0
GATEWAY=10.1.12.1
NAMESERVER=8.8.8.8

2/ Set the proxy

vim ~/.bash_proflile

#Append the following two lines at the end of the file
export http_proxy=http://10.1.7.55:8080
export no_proxy=localhost,localhost.localdomain,127.0.0.1,.hadoop

We also need to set proxy for yum

vim /etc/yum.conf

#Add the following line:
proxy=http://10.1.7.55:8080

4/ Make sure the hostname is node*.hadoop using the following command

hostname

5/ Edit file host to have the following entries

vim /etc/hosts

#The output should look something like this
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.1.12.71 ambari.hadoop
10.1.12.81 node1.hadoop
10.1.12.82 node2.hadoop
10.1.12.83 node3.hadoop
10.1.12.84 node4.hadoop

6/ Install vim and ntp

yum install vim ntp -y
service ntpd start
chkconfig ntpd on

7/ Update yum

yum update -y

8/ Disable iptables

service iptables stop
service ip6tables stop
chkconfig iptables off
chkconfig ip6tables off

9/ Disable SELinux

setenforce 0
vim /etc/sysconfig/selinux

#Change the value of `SELinux` variable:
SELINUX=disabled

10/ Increse hard drive

# Shrink /home partition
df -h
umount /dev/mapper/vg_xxx_home
e2fsck -f /dev/mapper/vg_xxx_home
resize2fs /dev/mapper/vg_xxx_home 5G
lvreduce -L 5G /dev/mapper/vg_xxx_home
mount /dev/mapper/vg_xxx_home /home

# Increase /root partition
df -h
lvextend -l 100%FREE /dev/mapper/vg_xxx_root
resize2fs /dev/mapper/vg_xxx_root

# Check again and reboot
df -h
sudo reboot

Run on ambari.hadoop

1/ Setup passwordless SSH

ssh-copy-id -i ~/.ssh/id_rsa.pub node*.hadoop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment