CentOS6.3 detailed steps for installing Hadoop2.4.1
This article mainly explains "the detailed steps of installing Hadoop2.4.1 in CentOS6.3". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the detailed steps of installing Hadoop2.4.1 in CentOS6.3.
Modify the mapping relationship between hostname and IP
Vim / etc/hosts
192.168.1.168 cacgg168
Install java
Export JAVA_HOME=/usr/java/jdk1.6.0_45
Export JRE_HOME=/usr/java/jdk1.6.0_45/jre
Export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
Export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$JAVA_HOME:$PATH
Install hadoop
Mkdir / cloud
# decompress to / cloud/ directory
Tar-zxvf hadoop-2.4.1.tar.gz-C / cloud/
Modify the configuration file
Hadoop-env.sh
Vim hadoop-env.sh
# Line 27
Export JAVA_HOME=/usr/java/jdk1.6.0_45
Core-site.xml
Fs.defaultFS
Hdfs://cacgg168:9000
Hadoop.tmp.dir
/ cloud/hadoop-2.4.1/tmp
Hdfs-site.xml
Dfs.replication
one
Mapred-site.xml (mv mapred-site.xml.template mapred-site.xml)
Mv mapred-site.xml.template mapred-site.xml
Mapreduce.framework.name
Yarn
Yarn-site.xml
Yarn.resourcemanager.hostname
Cacgg168
Yarn.nodemanager.aux-services
Mapreduce_shuffle
Export HADOOP_HOME=/cloud/hadoop-2.4.1
$HADOOP_HOME/bin:$HADOOP_HOME/sbin
At this point, I believe you have a deeper understanding of the "detailed steps for CentOS6.3 to install Hadoop2.4.1". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!