@Private
public class NameNodeResourceChecker
extends java.lang.Object
hasAvailableDiskSpace - which will return true if and only if
the NameNode has disk space available on all required volumes, and any volume
which is configured to be redundant. Volumes containing file system edits dirs
are added by default, and arbitrary extra volumes may be configured as well.| Constructor | Description |
|---|---|
NameNodeResourceChecker(org.apache.hadoop.conf.Configuration conf) |
Create a NameNodeResourceChecker, which will check the edits dirs and any
additional dirs to check set in
conf. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasAvailableDiskSpace() |
Return true if disk space is available on at least one of the configured
redundant volumes, and all of the configured required volumes.
|
public NameNodeResourceChecker(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
conf.java.io.IOExceptionpublic boolean hasAvailableDiskSpace()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.