...
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:OS Commands 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 -yCentOS 7 wget -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 -yUbuntu 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 -yUbuntu 14 wget -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 -yTo 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.
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.
Login using default username
admin
, passwordadmin
.On the welcome page, choose "Launch Install Wizard."
Specify a name for your cluster, and then click Next.
On the Select Version page, choose which version of HDP to install, and then click Next.
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
Upload the
insecure_private_key
file that you created earlier: browse to theambari-vagrant
directory, navigate to the operating system folder for your VM's, and choose the key file.Change the SSH User Account to
vagrant
.Click "Register and Confirm."
- On the Confirm Hosts page, select all hosts. Ambari displays installation status.
Continue stepping through Installation Wizard, completing onscreen instructions. 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.- Click Next to continue.
- 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.
- On the Assign Masters screen, choose hosts or simply click Next to use default values.
- On the Assign Slaves and Clients screen, choose hosts or simply click Next to use default values.
- 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. - On the Review screen, review the service definitions, and then click Next.
- The Install, Start and Test page shows deployment status. This step takes several minutes.
Install the HDP Stack
Next, install HDP on your cluster.
...
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:
...