Last active
June 9, 2016 16:24
-
-
Save ZacBlanco/7b0f1f21e7c98f7d25826a65e9dc3a69 to your computer and use it in GitHub Desktop.
Create an HDP Cluster using Ambari and Vagrant (CentOS 6.5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # List of commands to use to create a cluster with Ambari Installed | |
| # Sourced from the Ambari Quick Start guide | |
| # https://cwiki.apache.org/confluence/display/AMBARI/Quick+Start+Guide | |
| # Get Repo | |
| git clone https://github.com/u39kun/ambari-vagrant.git | |
| # Add hosts to Local Hosts File | |
| sudo -s 'cat ambari-vagrant/append-to-etc-hosts.txt >> /etc/hosts' | |
| # Generate 'insecure_private_key' file | |
| vagrant | |
| # Get into the directory | |
| cd ambari-vagrant | |
| # NOTE | |
| # Sometimes the default box isn't big enough. | |
| # You'll need to modify the Vagrantfile | |
| # Simply change the vm name to something else | |
| # Use the following site to find other boxes | |
| # http://www.vagrantbox.es | |
| # Set up the files | |
| cd centos6.5/ | |
| cp ~/.vagrant.d/insecure_private_key . | |
| ./up.sh 3 | |
| # SSH into the Master | |
| vagrant ssh c6501 | |
| sudo su | |
| # Install wget and ambari | |
| yum install wget | |
| wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo | |
| yum -y install ambari-server | |
| ambari-server setup -s | |
| ambari-server start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment