HdfsUtils (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.client, class: HdfsUtils

Package org.apache.hadoop.hdfs.client

# Class HdfsUtils

java.lang.Object
org.apache.hadoop.hdfs.client.HdfsUtils

@Public @Evolving public class HdfsUtils extends Object
The public utility API for HDFS.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final org.slf4j.Logger`
  `LOG`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HdfsUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static boolean`
  `isHealthy(URI uri)`
  Is the HDFS healthy?

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### LOG

    public static final org.slf4j.Logger LOG

- ## Constructor Details

  - ### HdfsUtils

    public HdfsUtils()

- ## Method Details

  - ### 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.