System environment: CentOS7.6
Closed: firewall and selinux
1. Standard operation: Create two directories under the /opt/ directory
# mkdir module software
2. After uploading the JDK package to the /opt/software directory... decompress it to /opt/module
rz .... omitted
# tar -xvf jdk-16_linux-x64_bin.tar.gz -C /opt/module/
Three, enter the path after decompression
Four, edit the environment variables of the JDK
# vim /etc/profile
Five, load the configuration file to take effect and check it out
6. Upload the hadoop precompiled package to /opt/software/ and unzip it to /opt/module/
# rz... Upload omitted
# tar -xvf /opt/software/hadoop-3.2.2.tar.gz -C /opt/module/
Seven, configure hadoop environment variables
# vim /etc/profile
Eight, load the hadoop environment to take effect and view