Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. From the terminal window on the VM where you want to run the main Ambari service, download the Ambari repository. The following commands download Ambari version 2.4.1.0 and install ambari-server. To install a different version of Ambari, specify the appropriate repo URL. Choose the appropriate commands for the operating system on your VMs:

    OSCommands
    CentOS 6
    wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo 

    yum install ambari-server -y
    CentOS 7wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

    yum install ambari-server -y
    Ubuntu 12
    wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu12/2.x/updates/2.4.1.0/ambari.list -O /etc/apt/sources.list.d/ambari.list

    apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
    apt-get update
    apt-get install ambari-server -y
     Ubuntu 14wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.4.1.0/ambari.list -O /etc/apt/sources.list.d/ambari.list

    apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD

    apt-get update

    apt-get install ambari-server -y
  2. To install Ambari with default settings, set up and start ambari-server:

    Code Block
    ambari-server setup -s
    ambari-server start

    For more information about installation options and settings, see Apache Ambari Installation.

  3. After Ambari Server has started, launch a browser on your host machine (Mac). Access the Ambari Web UI at http://<hostname>.ambari.apache.org:8080. The <hostname> part of the URL specifies the VM where you installed Ambari; for example:

    Code Block
    http://c7001.ambari.apache.org:8080

     Note: The Ambari Server can take some time to launch and be ready to accept connections. Keep trying the URL until you see the login page.

  4. Login using default username admin, password admin.

  5. On the welcome page, choose "Launch Install Wizard."

  6. Specify a name for your cluster, and then click Next.

  7. On the Select Version page, choose which version of HDP to install, and then click Next.

  8. On the Install Options page, list the FQDNs of the virtual machines. For example:

    Code Block
    c7001.ambari.apache.org
    c7002.ambari.apache.org
    c7003.ambari.apache.org
    

    Alternatively, you can use a range expression:

    Code Block
    c70[01-03].ambari.apache.org
    
  9. Upload the insecure_private_key file that you created earlier: browse to the ambari-vagrant directory, navigate to the operating system folder for your VM's, and choose the key file.

  10. Change the SSH User Account to vagrant.

  11. Click "Register and Confirm."

  12. On the Confirm Hosts page, select all hosts. Ambari displays installation status.
  13. Continue stepping through Installation Wizard, completing onscreen instructions to install your cluster.

Install the HDP Stack

Next, install HDP on your cluster.

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_Installing_HDP_AMB/content/ch_Deploy_and_Configure_a_HDP_Cluster.html

Choose which HDP version,  Choose services, Assign master and slave processes, Customize services (here I assigned admin/admin to Hive and Oozie)

Timeline for installing HDP, and mac hardware

Troubleshooting

...

  1. . If you see the following message, click on the link to review warnings:
    Some warnings were encountered while performing checks against the 3 registered hosts above Click here to see the warnings.
    See the Troubleshooting section (later on this page) for more information.

  2. Click Next to continue.
  3. On the Choose Services page, unselect any components that you do not expect to use. If any are required for selected components, Ambari will request to add them back in.
  4. On the Assign Masters screen, choose hosts or simply click Next to use default values.
  5. On the Assign Slaves and Clients screen, choose hosts or simply click Next to use default values.
  6. On the Customize Services screen, review services with warning notes, such as Hive and Ambari Metrics in the following image:
    Specify property values as directed by the installation wizard, and then click Next.
  7. On the Review screen, review the service definitions, and then click Next.
  8. The Install, Start and Test page shows deployment status.

Install the HDP Stack

Next, install HDP on your cluster.

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_Installing_HDP_AMB/content/ch_Deploy_and_Configure_a_HDP_Cluster.html

Choose which HDP version,  Choose services, Assign master and slave processes, Customize services (here I assigned admin/admin to Hive and Oozie)

Timeline for installing HDP, and mac hardware

Troubleshooting

  • Ambari message about THPs? fix transparent huge page setting in /etc/rc.loca (CentOS7)
  • ntp not running / ntpd not installed?

If you see an error similar to the following on the Confirm Hosts page of the Ambari installation wizard, click the link to see the warnings:

Some warnings were encountered while performing checks against the 3 registered hosts above. Click here to see the warnings.


On the Host Checks window, the following warning indicates that you need to start ntpd processes:


To do this, navigate to a terminal window for each VM (from your Mac, vagrant ssh <VM-name>), and issue the following commands:

service ntpd start
service ntpd status

You should see messages confirming that ntpd is running. Navigate back to the Host Checks window of the Ambari installation wizard and click Rerun Checks. When all checks complete successfully, click Close to continue the installation process.

...

Basic Vagrant Commands

The following table lists several common Vagrant commands. For more information, see Vagrant Command-Line Interface documentation.

...