org.apache.hadoop.hdfs.client
Class HdfsUtils
java.lang.Object
org.apache.hadoop.hdfs.client.HdfsUtils
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class HdfsUtils
- extends Object
The public utility API for HDFS.
Method Summary |
static boolean |
isHealthy(URI uri)
Is the HDFS healthy?
HDFS is considered as healthy if it is up and not in safemode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HdfsUtils
public HdfsUtils()
isHealthy
public static boolean isHealthy(URI uri)
- Is the HDFS healthy?
HDFS is considered as healthy if it is up and not in safemode.
- Parameters:
uri
- the HDFS URI. Note that the URI path is ignored.
- Returns:
- true if HDFS is healthy; false, otherwise.
Copyright © 2013 Apache Software Foundation. All Rights Reserved.