Now, let's see how to install and configure the Cloudera distribution of Hadoop. There are two options for Cloudera Hadoop installation:
Cloudera Hadoop tars of CDH4/CDH5 can be downloaded from http://www.cloudera.com/content/support/en/documentation.html.
If you use tarball, follow the same method as was previously mentioned for both Ubuntu and Red Hat distros. There are other methods too, which use the .rpm
package, which we will discuss now.
In this section, we will see links to download the required RPM packages for installation.
The following is the link to download RPM packages for the CDH4 version of Hadoop:
http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4/RPMS/x86_64/
The following is the link to download RPM packages for the CDH4 version of HBase:
http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4/RPMS/x86_64/
The following are the links to download RPM packages for the CDH4 version of ZooKeeper:
After downloading these packages, we can install different components on machines assigned for specific components.
For a single node setup, we can install all these RPM packages on a single server, as follows:
Rpm –ivh<rpm package name.rpm>
For a fully distributed cluster, we will install the Hadoop and HBase RPM packages on all nodes; the NameNode, JobTracker, and master RPM packages on the NameNode server; the DataNode, TaskTracker, and RegionServer RPM packages on DataNodes; and the ZooKeeper RPM package on servers assigned for ZooKeepers.
After changing the permission and ownership, the configuration process is the same as configuring TAR files. We need to add the parameters as we added them in the Configuring Apache HBase section; the startup and stop processes are also the same.
There is another easy method to install Cloudera, which is as follows:
Wget http://archive.cloudera.com/cdh4/one-click-install/redhat/6/x86_64/cloudera-cdh-4-0.x86_64.rpm
sudo yum --nogpgchecklocalinstall<Cloudera rpm downloaded cloudera-cdh-4-0.x86_64.rpm>
The following command will add a repository key:
sudo rpm --import http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera
3.139.82.4