Detailed explanation of the installation process of Hadoop
The main content of this article is "detailed explanation of the installation process of Hadoop". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "the detailed explanation of the installation process of Hadoop"!
Install JDK
Decompress the jdk package
Tar-zxvf / home/hadoop/software/jdk-7u80-linux-x64.tar.gz-C / usr/java/ 1 2
Configure jdk environment variables
Hadoop:root:/usr/java: > vi / etc/profile # / etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in / etc/bashrc # It's NOT a good idea to change this file unless you know what you # are doing. It's much better to create a custom.sh shell script in # / etc/profile.d/ to make custom changes to your environment, as this # will prevent the need for merging in future updates. # add path export JAVA_HOME=/usr/java/jdk1.7.0_80 export PATH=$JAVA_HOME/bin:$PATH # show path hadoop:root:/usr/java: > source / etc/profilehadoop:root:/usr/java: > java-versionjava version "1.7.0o80" Java (TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot (TM) 64-Bit Server VM (build 24.80-b11 Mixed mode) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 install Hadoop
Decompress Hadoop
Hadoop:hadoop:/home/hadoop/app: > tar-zxvf / home/hadoop/software/hadoop-2.6.0-cdh6.7.0.tar.gz-C / home/hadoop/app/
Configure the environment
Hadoop:hadoop:/home/hadoop: > vi .bash _ profile # .bash _ profile # Get the aliases and functions if [- f ~ / .bashrc]; then. ~ / .bashrc fi # User specific environment and startup programs export HADOOP_HOME=/home/hadoop/app/hadoop-2.6.0-cdh6.7.0 export PATH=$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH hadoop:hadoop:/home/hadoop: > source .bash _ profile hadoop:hadoop:/home/hadoop: > echo $HADOOP_HOME/ home/hadoop/app/hadoop-2.6.0-cdh6.7.0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 formatted Hadoop hdfs namenode-format 1 2