dineshchitlangia commented on a change in pull request #603: HADOOP-16026:Replace incorrect use of system property user.name URL: https://github.com/apache/hadoop/pull/603#discussion_r268859577
########## File path: hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/SshFenceByTcpPort.java ########## @@ -236,7 +237,13 @@ private int getSshConnectTimeout() { public Args(String arg) throws BadFencingConfigurationException { - user = System.getProperty("user.name"); + try { + user = UserGroupInformation.getCurrentUser().getShortUserName(); Review comment: @jojochuang Could you share your thoughts pls? Thanks! ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org