Skip to main content

Table 6 Hadoop clustering environment

From: Data classification algorithm for data-intensive computing environments

A. Edit conf/master, by replacing the master hostname (every host has one independent name). The specific commands are as follows:

~$cd /home/ administrator /hadoop-0.20.2

~$gedit conf/master

Write the following in the edit window:

C0

B. Edit conf/slaves, by adding all hostnames of the slaves. The specific commands are as follows:

~$cd /home/ administrator /hadoop-0.20.2

~$gedit conf/slaves

Write the following in the edit window:

C1

C2

C3

C4

C5

C6

C7

C8

Save and close the edit window.

C. Editconf/hadoop-env.sh, by setting variable JAVA_HOME to the JDK installation index. The specific commands are as follows:

~$cd /home/ administrator /hadoop-0.20.2

~$gedit conf/hadoop-env.sh

Write the following in the edit window:

export JAVA_HOME /usr/local/java/jdk1.7.0_03

Save and close the edit window.

D. Allocatecore-site.xml file. The specific commands are as follows:

~$cd /home/ administrator /hadoop-0.20.2

~$gedit conf/core-site.xml

Write the following in the edit window:

Save and close the edit window.

E. Allocatehdfs-site.xml file. The specific commands are as follows:

~$cd /home/ administrator /hadoop-0.20.2

~$gedit conf/hdfs-site.xml

Write the following in the edit window:

Save and close the edit window.

F. Allocatemapred-site.xml file. The specific commands are as follows:

~$cd /home/ administrator /hadoop-0.20.2

~$gedit conf/mapred-site.xml

Write the following in the edit window.