You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Surendra Singh Lilhore (JIRA)" <ji...@apache.org> on 2018/11/16 12:26:01 UTC
[jira] [Commented] (HDFS-14076)
NameNodeResourceChecker#isResourceAvailable() should check the linux
filesystem inode usage.
[ https://issues.apache.org/jira/browse/HDFS-14076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689351#comment-16689351 ]
Surendra Singh Lilhore commented on HDFS-14076:
-----------------------------------------------
Attached initial patch. Please review...
> NameNodeResourceChecker#isResourceAvailable() should check the linux filesystem inode usage.
> --------------------------------------------------------------------------------------------
>
> Key: HDFS-14076
> URL: https://issues.apache.org/jira/browse/HDFS-14076
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 3.1.1
> Reporter: Surendra Singh Lilhore
> Assignee: Surendra Singh Lilhore
> Priority: Major
> Attachments: HDFS-14076-01.patch
>
>
> Linux system gives the *"No space left on device"* exception in two cases.
> # Disk space is not available
> # Linux inode limit is exceeded
> NameNodeResourceChecker currently only checking the disk space, it should check the inode limit also.
> We got *"No space left on device"* exception even disk space was there and roll edit operation is failed. After analysis we found that Inode usage for the system is 100%.
> {noformat}
> 2018-11-10 18:59:37,913 ERROR org.apache.hadoop.hdfs.server.namenode.FSEditLog: Error: starting log segment 796xxxxxx failed for (journal JournalAndStream(mgr=FileJournalManager(root=/opt/xxxxxxxxxx), stream=null))
> java.io.FileNotFoundException: /opt/xxxxxxx/edits_inprogress_0000000000007964819 (No space left on device)
> at java.io.RandomAccessFile.open0(Native Method)
> at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
> at org.apache.hadoop.hdfs.server.namenode.EditLogFileOutputStream.<init>(EditLogFileOutputStream.java:88){noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org