Centos7 && hadoop-2.7.0.tar.gz
Hadoop is based on a Java environment, so you need to configure the JDK.
1. Configure the JDK:
http://blog.csdn.net/fantasydreams/article/details/46486275
2. Download the hadoop-2.7.0.tar.gz package and upload it to the CentOS os via SSH
Latest Hadoop:
http://hadoop.apache.org/#Download +hadoop
3, Decompression hadoop-2.7.0.tar.gz
tar -vxzf hadoop-2.7.0.tar.gz
4. Change hadoop-2.7.0 folder permissions
chmod777 hadoop-2.7.0
5. Add the Hadoop directory to the/etc/profile folder and enter the Hadoop directory to run the pwd
command to get the Hadoop directory path
Add the following two sentences into the/etc/profile file
export HADOOP_HOME=/root/hadoop-2.7.0export PATH=$HADOOP_HOME/bin:$PATH
6. Execute the command to . /etc/profile
make the Hadoop environment variable effective
7, the implementation of the hadoop version
test environment has been successfully built
If this is the case, the Hadoop environment variable is built successfully!
CentOS Configuration Hadoop Environment variables