ramkrish86 commented on a change in pull request #2419:
URL: https://github.com/apache/hbase/pull/2419#discussion_r491000563



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/fs/HFileSystem.java
##########
@@ -85,8 +85,6 @@ public HFileSystem(Configuration conf, boolean 
useHBaseChecksum)
     this.fs = FileSystem.get(conf);
     this.useHBaseChecksum = useHBaseChecksum;
 
-    fs.initialize(getDefaultUri(conf), conf);
-

Review comment:
       `  private static FileSystem createFileSystem(URI uri, Configuration conf
         ) throws IOException {
   
       Class<?> clazz = getFileSystemClass(uri.getScheme(), conf);
   
       if (clazz == null) {
   
         throw new IOException("No FileSystem for scheme: " + uri.getScheme());
   
       }
   
       FileSystem fs = (FileSystem)ReflectionUtils.newInstance(clazz, conf);
   
       fs.initialize(uri, conf);
   
       return fs;
   
     }`
   
   This is what happens inside `FileSystem.get()`




----------------------------------------------------------------
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:
[email protected]


Reply via email to