CentOS7 install JDK package and Hadoop

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

image.pngFour, edit the environment variables of the JDK

# vim /etc/profile

image.png

Five, load the configuration file to take effect and check it out

image.png6. 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

image.png

Eight, load the hadoop environment to take effect and view

image.png






Guess you like

Origin blog.51cto.com/kangxi/2674707