Database Reference
In-Depth Information
The Cloudera cluster manager is Cloudera's own Hadoop cluster manager release, while the Ambari tool is
actually an Apache project. Hortonworks has used Ambari as the mechanism to both release and manage its Hadoop
stack. Given that Cloudera and Hortonworks are two of the best-known Hadoop stack suppliers, it is their cluster
managers that I have chosen to source and install here.
As a last thought before launching into the installation of Ambari, I mention that there are licensing fees
associated with these releases of Hadoop cluster manager. However, the costs are easily offset by the savings in time
and trouble when big problems can be avoided.
The Ambari Cluster Manager
Although Ambari can be used to install many different Hadoop stacks, and is a top-level Apache project in its own
right, I install only the latest HDP stack to demonstrate its functionality. As in prior chapters, I use an example
installation to show how it's accomplished. I start by sourcing the Ambari code and install the Ambari agents and
server on the new cluster nodes: hc2nn (the Name Node server) and hc2r1m1 through hc2r1m4 (four data nodes).
For the latest information on ambari and up-to-date release documentation, see the official apache software
Foundation ambari website at http://ambari.apache.org/ .
Note
Ambari Installation
To install the latest Hortonworks Ambari release, I first install a Hortonworks Centos 6 repository to match the version
of CentOS that is installed, by running the following commands as root:
[root@hc2nn /]# cd /etc/yum.repos.d/
[root@hc2nn yum.repos.d]# wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/
updates/1.6.1/ambari.repo
The wget command downloads the ambari.repo file to the directory /etc/yum/yum.repos.d. Now, I use the Linux
yum command to install the Ambari server on the Name Node server hc2nn:
[root@hc2nn yum.repos.d]# yum install ambari-server
I run the Ambari server setup command as root to configure the Ambari server component:
[root@hc2nn yum.repos.d]# ambari-server setup
Using python /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'enabled'
SELinux mode is 'enforcing'
Temporarily disabling SELinux
WARNING: SELinux is set to 'permissive' mode and temporarily disabled.
OK to continue [y/n] (y)? y
Customize user account for ambari-server daemon [y/n] (n)? y
Enter user account for ambari-server daemon (root):
Adjusting ambari-server permissions and ownership...
 
 
Search WWH ::




Custom Search