Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install jdk for hadoop deployment

Shulou Source: shulou.com Published: 2022-06-01 02:12:29 09月22日 Update

Editor to share with you how to install jdk in hadoop deployment. I hope you will get something after reading this article. Let's discuss it together.

The first step is to install jdk

1. Put the downloaded jdk in the directory to be installed (my directory is: / root/hadoop/opt/cloud, use WinSCP to drag directly to the target directory)

2. Decompress in the target directory

Sudo tar xvf jdk-7u45-linux-x64.tar.gz

3. Configure environment variables

Here I am using the command in the directory of the command:

[root@localhost cloud] # / bin/vi / etc/profile

The advantage of using this command is that even if there is a problem with the configuration of the environment command and the configuration is wrong, you can open the file of the configuration environment variable again and modify it.

After opening it, add the first three lines in front of the fourth line, and notice that your path may be different from mine.

4. Make the configuration effective:

[root@localhost cloud] # source / etc/profile

5. Test version

I made a mistake here. Linux is case-sensitive. Haha.

After reading this article, I believe you have a certain understanding of "how to install jdk in hadoop deployment". If you want to know more about it, please follow the industry information channel. Thank you for reading!

Tags: Directories commands configurations environments variables goals articles errors again size benefits done documents is in more versions knowledge industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Apple Redmi vpn Microsoft