当前位置:网站首页>Due to resource constraints, the namenode fails to start with an error unable to create new native thread
Due to resource constraints, the namenode fails to start with an error unable to create new native thread
2022-07-23 14:36:00 【Coke big data】
Catalog
1、namenode Log error information
3、 Problem thinking : Why is there insufficient thread resources ?
4、 Check /etc/security/limits.conf Configuration file for
5、 The solution is 90-nproc.conf Additional configuration in the configuration file
6、 Restart ,nn1 Successful startup
Problem review and reflection :
1、namenode Log error information
2022-07-22 14:00:54,578 INFO org.apache.hadoop.ipc.Server: IPC Server Responder: starting
2022-07-22 14:00:54,578 INFO org.apache.hadoop.ipc.Server: IPC Server listener on 9000: starting
2022-07-22 14:00:55,240 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:717)
at org.apache.hadoop.ipc.Server.start(Server.java:2880)
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.start(NameNodeRpcServer.java:521)
at org.apache.hadoop.hdfs.server.namenode.NameNode.startCommonServices(NameNode.java:767)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:711)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:905)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:884)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1610)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1678)
2022-07-22 14:00:55,243 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2、 Problem cause analysis
unable to create new native thread, Unable to create new native thread .
3、 Problem thinking : Why is there insufficient thread resources ?
Because this is a newly built hadoop colony , I went back to check the installation documents , The following configuration modifications were found on the document .65536, This thread is completely sufficient for the new cluster , Why didn't it work ?
sed -i '/soft nofile/d' /etc/security/limits.conf
echo '* soft nofile 65536' >> /etc/security/limits.conf
sed -i '/hard nofile/d' /etc/security/limits.conf
echo '* hard nofile 65536' >> /etc/security/limits.conf 4、 Check /etc/security/limits.conf Configuration file for
It is found that , But the inspection found that it did not take effect .
Someone on the Internet said limits.conf must Restart and take effect , Our operation and maintenance personnel generally do not restart the machine easily , So we can only use other methods .
* soft nproc 65535
* hard nproc 65535
# End of file
* soft nofile 65536
* hard nofile 65536
5、 processing method
stay 90-nproc.conf Additional configuration in the configuration file
* - nproc 65536
* - nofile 655366、 Restart ,nn1 Successful startup
$ jps
5379 JournalNode
19845 NameNode
24042 Jps
Problem review and reflection :
The reason for the problem is to build hadoop The cluster before , The adjustment of resource restrictions did not take effect . So I suggest you relax the resource restrictions , Delete first /etc/security/limits.conf Related Settings , modify /etc/security/limits.d/90-nproc.conf, Relax the maximum number of processes and file handles .
边栏推荐
- Aruba学习笔记05-配置架构- WLAN配置架构
- 云呐|怎样管理固定资产?如何进行固定资产管理?
- 多重背包!
- Authing 支持 Zadig 啦!云原生用户统一认证快速对接
- ValidationError: Invalid options object. Dev Server has been initialized using an options object th
- 手机股票开户风险性大吗,安全吗?
- Canvas from getting started to persuading friends to give up (graphic version)
- Optimisation du serveur Cloud Huawei avec connexion clé
- CPU,内存,磁盘速度比较
- 10 years of software testing engineer experience, very confused
猜你喜欢
![Looking for peak [Abstract dichotomy exercise]](/img/99/122e79784f0f07120680d2cbcf89da.png)
Looking for peak [Abstract dichotomy exercise]

R language practical application case: drawing part (III) - drawing of multiple combination patterns

单调栈!!!
![Pycharm读取Excel文件时报错:raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+ ; not supported )](/img/f0/9491ccc2a86d95bb30066397fb9fb6.png)
Pycharm读取Excel文件时报错:raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+ ; not supported )

4. 寻找两个正序数组的中位数

Optimisation du serveur Cloud Huawei avec connexion clé

Using JS to parse and execute XSS automatically
![Pychart reads excel file with error: raise xlrderror (file_format_descriptions[file_format]+; not supported)](/img/f0/9491ccc2a86d95bb30066397fb9fb6.png)
Pychart reads excel file with error: raise xlrderror (file_format_descriptions[file_format]+; not supported)

10年软件测试工程师经验,很茫然....

Tensor, numpy, PIL format conversion and image display
随机推荐
How can manual testing turn to automated testing? Byte 5 years of automation experience talk about
R language practical application case: drawing part (III) - drawing of multiple combination patterns
shell跑的时候需要的需要了解命令
Sword finger offer19 regular expression
uni-app知识点和项目上遇到的问题和解决办法的记录
股票炒股开户风险性大吗,安全吗?
npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead.
买卖股票的最佳时机
About flex layout justify content: the last solution to the misalignment of space around and why it is solved like this is a discussion
npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead.
【数组&&字符串&&宏练习题】
Palindrome related topics
2022河南萌新联赛第(二)场:河南理工大学 补题题解
Day 5 experiment
APtos 简介及机制
websocket通用化封装设计与实现
Chapter 2 basic query and sorting
子序列 --- 编辑距离
对象使用过程中背后调用了哪些方法
链表复习!