public Path getHomeDir() throws Exception {
    return execute(new PrivilegedExceptionAction<Path>() {
      public Path run() throws IOException {
        return fs.getHomeDirectory();
      }
    });
  }
Home directory

@return home directory
@throws Exception
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java