Hadoop initialization
1. Configure Hadoop environment variables
(1) Modify the configuration file
# vi /etc/profile
Modify the following content:
export HADOOP_HOME=/usr/local/src/hadoop/hadoop-2.7.7
PATH=$PATH:$JAVA_HOME/bin:$HADOOP_HOME/bin
(2) Restart the configuration file
# source /etc/profile
(3) View the hadoop version
# hadoop version
2. Start Hadoop
(1) Format
# hdfs namenode -format
(2) Startup file
# cd sbin
# ./start-dfs.sh
# ./start-yarn.sh
(3) Check what are the current Jps processes (6)
# jps
(4) Turn off the firewall
# firewall-cmd --state
# systemctl stop firewalld.service
(5) Browser verification①
http://192.168.184.114:50070
② http://192.168.184.114:8088