Hadoop installation
Rz-be
Tar-xvzf hadoop-2.7.1.tar.gz
Vi / etc/profile
Export JAVA_HOME=/home/skinglzw/jdk1.8.0_101
Export HADOOP_INSTALL=/home/skinglzw/hadoop-2.7.1
Export PATH=$JAVA_HOME/bin:$PATH:$HADOOP_INSTALL/bin:$HADOOP_INSTALL/sbin
Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Source / etc/profile
If you are configuring user environment variables, add ZK_HOME to the ~ / .bashrc file and execute the following command:
Vim / .bashrc
Then log in to the linux terminal again and it will take effect.