jerryshao commented on code in PR #11354:
URL: https://github.com/apache/gravitino/pull/11354#discussion_r3397783285
##########
catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.java:
##########
@@ -1386,7 +1386,10 @@ FileSystem getFileSystem(Path path, Map<String, String>
config) throws IOExcepti
() -> {
if (scheme.equals(SCHEME_HDFS)) {
return new ImpersonationHDFSFileSystemProxy(
- path, config, PrincipalUtils::getCurrentUserName)
+ path,
+ config,
+ PrincipalUtils::getCurrentUserName,
+ GravitinoEnv.getInstance().blockUnsafeRemoteUri())
Review Comment:
`GravitinoEnv.getInstance().blockUnsafeRemoteUri()` will not be changed in
the runtime, so I think we can call it once when FetchFileUtils is initialized.
We don't have to pass this configuration each time when we call the method,
WDYT?
--
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]