Skip to content

Commit 770072f

Browse files
committed
Fix the problem in fetching user info when the flink application doesn't have hadoop dependencies.
1 parent 25f772d commit 770072f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

streamis-jobmanager/streamis-job-log/flink-streamis-log-collector/src/main/java/com/webank/wedatasphere/streamis/jobmanager/log/collector/flink/FlinkStreamisConfigAutowired.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public StreamisLogAppenderConfig logAppenderConfig(StreamisLogAppenderConfig.Bui
6060
}
6161
String hadoopUser = EnvironmentInformation.getHadoopUser();
6262
if (hadoopUser.equals("<no hadoop dependency found>") || hadoopUser.equals("<unknown>")){
63-
hadoopUser = "";
63+
hadoopUser = System.getProperty("user.name");
6464
}
6565
return builder.setRpcConnTimeout(this.configuration.getInteger(LOG_RPC_CONN_TIMEOUT))
6666
.setRpcSocketTimeout(this.configuration.getInteger(LOG_RPC_SOCKET_TIMEOUT))

0 commit comments

Comments
 (0)