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

Example Analysis of linux self-configuration in hadoop Machine

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail the example analysis of the configuration of linux itself in hadoop machines. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

1. Configure the number of open file

Log in as root user

Vi / etc/security/limits.conf

Add the following configuration at the end of the file, save, exit, and login will take effect.

* soft nofile 32768

* hard nofile 32768

two。 Configure the maximum number of processes

Ulimit-u

Maximum number of threads started by the user

The number of processes started under root may be different from those started by other users.

Add .bash _ profile

For i in {1 2 3 4 5 6 7 8 9}; do ssh hadoop00 ${I} "echo 'ulimit-u 65535' > / home/game/.bash_profile"; done

For i in 1 2 3 4 5 6 7 8 9 X do ssh game@hadoop00 ${I} "source / home/game/.bash_profile" under source; done

Check for i in 1 2 3 4 5 6 7 8 9 do ssh game@hadoop00 ${I} "ulimit-a"; done

3. Guarantee no landing

Make sure that ssh localhost can access

Ensure that the domain name abbreviation can be login-free, for example, configure two copies of hadoop009's ip.

111 hadoop009

111 h9

This is the end of the article on "sample Analysis of linux configuration in hadoop machines". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

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