@Private
@Unstable
public class StorageLocationChecker
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
StorageLocationChecker(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.util.Timer timer) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<StorageLocation> |
check(org.apache.hadoop.conf.Configuration conf,
java.util.Collection<StorageLocation> dataDirs) |
Initiate a check on the supplied storage volumes and return
a list of healthy volumes.
|
void |
shutdownAndWait(int gracePeriod,
java.util.concurrent.TimeUnit timeUnit) |
public StorageLocationChecker(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.util.Timer timer)
throws org.apache.hadoop.util.DiskChecker.DiskErrorException
org.apache.hadoop.util.DiskChecker.DiskErrorExceptionpublic java.util.List<StorageLocation> check(org.apache.hadoop.conf.Configuration conf, java.util.Collection<StorageLocation> dataDirs) throws java.lang.InterruptedException, java.io.IOException
conf - HDFS configuration.dataDirs - list of volumes to check.java.lang.InterruptedException - if the check was interrupted.java.io.IOException - if the number of failed volumes exceeds the
maximum allowed or if there are no good
volumes.public void shutdownAndWait(int gracePeriod,
java.util.concurrent.TimeUnit timeUnit)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.