...
- 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 you can resolve hostnames for the VM's.
Code Block '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.
Code Block 'chkconfig iptables off'
Turn selinux off. Selinux can cause issues during install.(This requires a reboot).
Code Block '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.
Code Block '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.
Download the ambari repository on /etc/yum.repos.d/
Code Block 'cd /etc/yum.repos.d/' 'wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/ambari.repo' 'yum clean all'
Install Ambari Server.
Code Block 'yum install ambari-server'
Setup Ambari server. This process asks for what user the process runs on, JAVA path and what Database to use.
Code Block 'ambari server setup'
- Depending on your config needs. You can mostly use the default settings during the Ambari Server Setup. I use a modified JAVA_HOME since I use the latest jdk version and the one downloaded by Ambari is not.
Start Ambari server.
Code Block 'service ambari-start'
- Access Ambari by using your browser and go to "ambari-server-name:8080" and log-in with the default User:admin and pass:admin.