Start Guide - Installing a cluster with Ambari (with local VMs)
This document shows how to set up a cluster using Ambari on your local machine using virtual machines. This document will describe certain steps and recommendations to be able to install Ambari and a cluster using more operational configurations.
This utilizes VirtualBox Or Vmware.
This has been tested in Centos 6.3 to 6.6.
Setup
- Install VirtualBox from: https://www.virtualbox.org/wiki/Downloads or Vmware Player/workstation from : http://www.vmware.com/products/
- Download the Centos ISO From: http://centos.org/
- After you have installed VirtualBox or Vmware Create a New Host and Load the ISO. If you require further steps on how to install CENTOS Go here : http://www.tecmint.com/centos-6-3-step-by-step-installation-guide-with-screenshots/
- During the installation process Stop at the Filesystem Page. In this section instead of using LVM's you will have to create standard partitions for the application and data storage part. You can still use a LVM for the root dir.
A. Create two standard partitions one will have the application files and logs and the other will host the data.(Screenshots soon)
B. The other partition can be the LVM for the / and /home. (Later on you will need to change the location of the logs from /var/log to the standard partitions.) - Finish Installing the OS.
log-in to your vm and modify /etc/hosts so your can resolve hostnames for the VM's.
'vim /etc/hosts' and add the hostname and ip. You will need to modify this later on to add the extra nodes.
Turn iptables off during boot.
'chkconfig iptables off'
Turn selinux off. Selinux can cause issues during install.(This requires a reboot).
'vim /selinux/config' and change 'SELINUX=enforcing' to 'disable'
Turn NTPD on during boot. Nodes can have issues if their time is not correctly sync. Make sure that it can synch with a internet ntp or a local server.
'chkconfig ntpd on'
- (Optional) Update CENTOS to the latest packages. I do this part due to security concerns. If you do not want to update the whole host then at least update openssl to the latest package. It can cause issues if using an older version.