Hadoop pseudo-distributed Construction 01

3. Install Hadoop

Version hadoop-2.4.1 3.1 Uploading the Hadoop installation package 3.2 Decompressing the Hadoop installation package mkdir /cloud # Decompress the hadoop installation package to /cloud/. Tar -zxvf hadoop-2.1.0.tar. gz -c /cloud/

 

\

** Folder contents **bin: executable script

Include and libexec: headers for the local library

Sbin: Start and stop related

Etc: configuration file

Lib: stores the local library

Share: jar for Java

 

3.3 Modifying Configuration Files (Five) First: hadoop-env.sh In vim hadoop-env.sh

Echo $JAVA_HOME Export JAVA_HOME= Copy the second Java path: Core-site. XML fs.defaultfs HDFS ://itcast01:9000 hadoop.tmp.dir /itcast/hadoop-2.4.1/ TMP hdfs-site.xml dfs.replication 1

Fourth: mapred-site.xml (mv mapred-site.xml.template mapred-site.xml) mv mapred-site.xml.template mapred-site.xml vim Mapred-site. XML mapreduce.framework.name yarn The fifth: yarn-site.xml yarn.resourcemanager.hostname itcast01 yarn.nodemanager.aux-services mapreduce_shuffle

3.2 Adding Hadoop to the environment variable vim /etc/proflie export JAVA_HOME= /usr/jav/jdk1.7.0_65 export HADOOP_HOME=/itcast/hadoop-2.4.1 export PATH=$PATH:$JAVA_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin

# refresh configuration

 source /etc/profile

** HDFS namenode -format or

Hadoop namenode-format (obsolete)

TMP: Saves important files at run time

 

To be continued! ————————————————————————