Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install jdk for hadoop deployment

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report