Skip to content

Commit db353c5

Browse files
committed
add log
1 parent 35205ac commit db353c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flinkx-core/src/main/java/com/dtstack/flinkx/util/FileSystemUtil.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public static void setHadoopUserName(Configuration conf){
6969
}
7070

7171
try {
72+
String previousUserName = UserGroupInformation.getLoginUser().getUserName();
73+
LOG.info("Hadoop user from '{}' switch to '{}' with SIMPLE auth", previousUserName, hadoopUserName);
7274
UserGroupInformation ugi = UserGroupInformation.createRemoteUser(hadoopUserName);
7375
UserGroupInformation.setLoginUser(ugi);
7476
} catch (Exception e) {

0 commit comments

Comments
 (0)