public class LocalDirsHandlerService
extends org.apache.hadoop.yarn.service.AbstractService
| Constructor and Description |
|---|
LocalDirsHandlerService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areDisksHealthy()
The minimum fraction of number of disks needed to be healthy for a node to
be considered healthy in terms of disks is configured using
YarnConfiguration.NM_MIN_HEALTHY_DISKS_FRACTION, with a default
value of YarnConfiguration.DEFAULT_NM_MIN_HEALTHY_DISKS_FRACTION. |
String |
getDisksHealthReport() |
long |
getLastDisksCheckTime() |
List<String> |
getLocalDirs() |
org.apache.hadoop.fs.Path |
getLocalPathForWrite(String pathStr) |
org.apache.hadoop.fs.Path |
getLocalPathForWrite(String pathStr,
long size,
boolean checkWrite) |
List<String> |
getLogDirs() |
org.apache.hadoop.fs.Path |
getLogPathForWrite(String pathStr,
boolean checkWrite) |
org.apache.hadoop.fs.Path |
getLogPathToRead(String pathStr) |
void |
init(org.apache.hadoop.conf.Configuration config)
Method which initializes the timertask and its interval time.
|
void |
start()
Method used to start the disk health monitoring, if enabled.
|
void |
stop()
Method used to terminate the disk health monitoring service.
|
public void init(org.apache.hadoop.conf.Configuration config)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.AbstractServicepublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.AbstractServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.AbstractServicepublic List<String> getLocalDirs()
public List<String> getLogDirs()
public String getDisksHealthReport()
public boolean areDisksHealthy()
YarnConfiguration.NM_MIN_HEALTHY_DISKS_FRACTION, with a default
value of YarnConfiguration.DEFAULT_NM_MIN_HEALTHY_DISKS_FRACTION.public long getLastDisksCheckTime()
public org.apache.hadoop.fs.Path getLocalPathForWrite(String pathStr) throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path getLocalPathForWrite(String pathStr, long size, boolean checkWrite) throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path getLogPathForWrite(String pathStr, boolean checkWrite) throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path getLogPathToRead(String pathStr) throws IOException
IOExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.