shashwatsai commented on code in PR #7809:
URL: https://github.com/apache/seatunnel/pull/7809#discussion_r1795609106
##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/hadoop/HadoopFileSystemProxy.java:
##########
@@ -273,12 +300,42 @@ private void initializeWithRemoteUserLogin() throws
Exception {
configuration,
hadoopConf.getRemoteUser(),
(configuration, userGroupInformation) -> {
- final FileSystem fileSystem =
FileSystem.get(configuration);
+ this.userGroupInformation = userGroupInformation;
+ this.fileSystem = FileSystem.get(configuration);
return Pair.of(userGroupInformation, fileSystem);
});
log.info("Create FileSystem success with RemoteUser: {}.",
hadoopConf.getRemoteUser());
- this.userGroupInformation = pair.getKey();
- this.fileSystem = pair.getValue();
- this.fileSystem.setWriteChecksum(false);
+ userGroupInformation = pair.getKey();
+ fileSystem = pair.getValue();
+ fileSystem.setWriteChecksum(false);
+ }
+
+ private <T> T execute(PrivilegedExceptionAction<T> action) throws
IOException {
Review Comment:
Thanks, added the necessary comments.
--
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]