TJX2014 commented on code in PR #7105:
URL: https://github.com/apache/hudi/pull/7105#discussion_r1023882478


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/bootstrap/BootstrapUtils.java:
##########
@@ -79,7 +79,7 @@ public static List<Pair<String, List<HoodieFileStatus>>> 
getAllLeafFoldersWithFi
       result.addAll(context.flatMap(subDirectories, directory -> {
         PathFilter pathFilter = getFilePathFilter(baseFileExtension);
         Path path = new Path(directory);
-        FileSystem fileSystem = path.getFileSystem(new Configuration());
+        FileSystem fileSystem = FSUtils.getFs(path, fs.getConf());
         RemoteIterator<LocatedFileStatus> itr = fileSystem.listFiles(path, 
true);

Review Comment:
   @danny0405 Hi, I have fixed it, please help review again ~



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to