Database Reference
In-Depth Information
$ export JAVA_HOME="/usr/java/jdk1.7.0_51/jre/"
$ export PATH=$JAVA_HOME/bin:$PATH
The preceding instructions will install Oracle Java 7, set the JAVA_HOME envir-
onment variable, and add the bin folder for the Java runtime to PATH .
2. Create a user, for example, hduser , and set a password for the user, using the
following commands:
$ useradd hduser
$ passwd hduser
3. Provide the user with sudo privileges by editing the sudoers file placed at
/etc and adding the following line:
hduser ALL=(ALL) ALL
4. Download the CDH5 RPM for CentOS (here, I am using CentOS 6) using the fol-
lowing link:
http://archive.cloudera.com/cdh5/one-click-install/redhat/6/x86_64/cloudera-
cdh-5-0.x86_64.rpm
5. Log in as hduser and install the downloaded RPM using the following com-
mand:
$ sudo yum --nogpgcheck localinstall
cloudera-cdh-5-0.x86_64.rpm
6. Perform steps 1, 2, 3, 4, and 5 on all servers that will be part of the cluster.
7. Execute the following command from the user hduser on node1.hcluster
to install the namenode daemon:
$ sudo yum install hadoop-hdfs-namenode
8. Execute the following command from the user hduser on node1.hcluster
to install the jobtracker daemon:
$ sudo yum install hadoop-0.20-mapreduce-jobtracker
9. Execute the following command from the user hduser on node1.hcluster
to install the Hadoop client:
$ sudo yum install hadoop-client
Search WWH ::




Custom Search