Package org.apache.hadoop.hdfs.client
Class HdfsUtils
java.lang.Object
org.apache.hadoop.hdfs.client.HdfsUtils
The public utility API for HDFS.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
HdfsUtils
public HdfsUtils()
-
-
Method Details
-
isHealthy
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.
-