Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2275#discussion_r72456165
  
    --- Diff: 
flink-yarn/src/main/java/org/apache/flink/yarn/YarnApplicationMasterRunner.java 
---
    @@ -125,29 +124,35 @@ protected int run(String[] args) {
                try {
                        LOG.debug("All environment variables: {}", ENV);
     
    -                   final String yarnClientUsername = 
ENV.get(YarnConfigKeys.ENV_CLIENT_USERNAME);
    +                   final String yarnClientUsername = 
ENV.get(YarnConfigKeys.ENV_HADOOP_USER_NAME);
                        require(yarnClientUsername != null, "YARN client user 
name environment variable {} not set",
    -                           YarnConfigKeys.ENV_CLIENT_USERNAME);
    +                           YarnConfigKeys.ENV_HADOOP_USER_NAME);
     
    -                   final UserGroupInformation currentUser;
    -                   try {
    -                           currentUser = 
UserGroupInformation.getCurrentUser();
    -                   } catch (Throwable t) {
    -                           throw new Exception("Cannot access 
UserGroupInformation information for current user", t);
    -                   }
    +                   final String currDir = ENV.get(Environment.PWD.key());
    +                   require(currDir != null, "Current working directory 
variable (%s) not set", Environment.PWD.key());
    +                   LOG.debug("Current working Directory: {}", currDir);
     
    -                   LOG.info("YARN daemon runs as user {}. Running Flink 
Application Master/JobManager as user {}",
    --- End diff --
    
    Could we keep this log output which prints out the user?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to