Configure Hadoop environment variables in Centos
Centos7 & hadoop-2.7.0.tar.gz
Hadoop is based on the java environment, so jdk needs to be configured.
1. Configure 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 operating system through ssh.
The latest hadoZ plugin? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> vcM/mirror + CjOhor3i0bloYWRvb3AtMi43LjAudGFyLmd6PC9wPgoKPHByZSBjbGFzcz0 =" brush: java; ">tar -vxzf hadoop-2.7.0.tar.gz
4. Change hadoop-2.7.0 folder Permissions
chmod -R 777 hadoop-2.7.0
5. Add the hadoop directory to the/etc/profile folder and run the pwd command in the hadoop directory to obtain the hadoop directory path.
Add the following two sentences to the/etc/profile file:
export HADOOP_HOME=/root/hadoop-2.7.0export PATH=$HADOOP_HOME/bin:$PATH
6. Execute the command./etc/profile to make the hadoop environment variable take effect.
7. Have the hadoop version testing environment been successfully set up?
If the above words appear, the hadoop environment variable is successfully set up!