God said BAT large practice needs from the ground up, install jdk, have come up with Hadoop (2)

Then, after the close of ssh-free installation, we jdk to install. jdk oracle can be downloaded directly from the official online face. Since I am here it is to generate vmware four nodes, so I'll download jdk version uploaded to the server each centOS above by xftp. And then extracting installer.

jdk Download

Remember to choose authorization before downloading

God said BAT large practice needs from the ground up, install jdk, have come up with Hadoop (2)

 

 

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Transfer files to install on vmware server

I xftp pass more convenient, using sftp way. Upload directories are free to choose, where you can use / opt / software this is my own set up.

God said BAT large practice needs from the ground up, install jdk, have come up with Hadoop (2)

 

 

Unzip the folder and copy jdk

First extract

tar -zxvf jdk-12.0.1_linux-x64_bin.tar.gz

In the copy to the installation directory, here I am usr following the establishment of a directory of java, we jdk folder copy past

mkdir /usr/java

mv jdk-12.0.1 /usr/java/

Modify the configuration file

We should let the operating system know java installation directory.

vi / etc / profile

#java

export JAVA_HOME=/usr/java/jdk-12.0.1

export PATH=$JAVA_HOME/bin:$PATH

export CLASSPATH=.:$JAVA_HOME/jre/lib/ext:/$JAVA_HOME/lib/tools.jar

Test to see if the installation was successful

java -version

God said BAT large practice needs from the ground up, install jdk, have come up with Hadoop (2)

 

Recommended Reading articles

Big Data era need to know six things

Big Data framework hadoop Top 10 Myths

Experience big data development engineer salary 30K summary?

Big Data framework hadoop we encountered problems

Guess you like

Origin blog.csdn.net/tttttt012/article/details/91466184