当前位置:网站首页>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 .
边栏推荐
- 股票炒股开户风险性大吗,安全吗?
- CPU,内存,磁盘速度比较
- Vk36n5d anti power interference / mobile phone interference 5-key 5-channel touch detection chip anti freeze function ponding in the touch area can still be operated
- Consensys Quorum Benchmark Test
- JS texture style pie chart plug-in
- Several hole filling methods of point cloud (mesh) (1)
- Uni app knowledge points and records of problems and solutions encountered in the project
- Tensor, numpy, PIL format conversion and image display
- 解决使用bert encoder出现的一系列问题
- Spotlight light box JS plug-in full screen enlarged picture
猜你喜欢

Work notes: one time bag grabbing

多重背包!

Palindrome related topics

云呐|公司固定资产如何管理?公司固定资产如何管理比较好?

npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead.

Vk36n5d anti power interference / mobile phone interference 5-key 5-channel touch detection chip anti freeze function ponding in the touch area can still be operated

C语言实现课堂随机点名系统

Consensys Quorum Benchmark Test

How can manual testing turn to automated testing? Byte 5 years of automation experience talk about

10年软件测试工程师经验,很茫然....
随机推荐
Some libraries that can perform 2D or 3D triangulation
Consensys Quorum Benchmark Test
pageHepler丢失原sql order by条件的坑
关于flex布局justify-content:space-around最后一个不对齐的解决方法和为什么这样子解决是讨论
手工测试如何转向自动化测试?字节5年自动化经验浅谈一下...
Antd form - reset method does not work - Basic accumulation - importance of prop
Authing supports Zadig! Unified authentication and rapid docking of cloud native users
ValidationError: Invalid options object. Dev Server has been initialized using an options object th
104 二叉树的最大深度 和 543 二叉树的直径和 124 二叉树的最大路径和
Question 142 of Li Kou: circular linked list 2
C language implements memcpy and memmove
shell跑的时候需要的需要了解命令
Tensor, numpy, PIL format conversion and image display
Aruba learning notes 05 configuration architecture WLAN configuration architecture
【C语言】猜数字小游戏+关机小程序
Is it risky and safe to open a mobile stock account?
Summary of JS data type judgment methods
完全背包!
Pychart reads excel file with error: raise xlrderror (file_format_descriptions[file_format]+; not supported)
建议思源笔记能够兼容第三方同步盘