You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2021/05/31 10:20:19 UTC

[GitHub] [hbase-operator-tools] anoopsjohn commented on a change in pull request #88: HBASE-25921 Fix Wrong FileSystem when running `filesystem` on non-HDFS storage

anoopsjohn commented on a change in pull request #88:
URL: https://github.com/apache/hbase-operator-tools/pull/88#discussion_r642383378



##########
File path: hbase-hbck2/src/main/java/org/apache/hbase/HBCKFsUtils.java
##########
@@ -107,6 +107,15 @@ public static Path getRootDir(final Configuration c) throws IOException {
     return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());
   }
 
+  /**
+   * @param conf must not be null
+   * @return Returns the filesystem of the hbase rootdir.
+   * @throws IOException from underlying FileSystem
+   */
+  public static FileSystem getCurrentFileSystem(Configuration conf) throws IOException {

Review comment:
       Should we call it getRootFileSystem  ?  For dir, we use rootDir and walDir terms.  Same way.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org