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

    https://github.com/apache/flink/pull/292#discussion_r23170666
  
    --- Diff: 
flink-clients/src/main/java/org/apache/flink/client/CliFrontend.java ---
    @@ -860,8 +910,50 @@ protected Properties getYarnProperties() throws 
IOException {
                return yarnProperties;
        }
        
    -   protected Client getClient(CommandLine line, ClassLoader classLoader) 
throws IOException {
    -           return new Client(getJobManagerAddress(line), 
getGlobalConfiguration(), classLoader);
    +   protected Client getClient(CommandLine line, ClassLoader classLoader, 
String programName) throws IOException {
    +           String jmAddrString = getJobManagerAddressString(line);
    +           InetSocketAddress jobManagerAddress = null;
    +           if(jmAddrString.equals(YARN_DEPLOY_JOBMANAGER)) {
    +                   System.out.println("YARN cluster mode detected. 
Switching Log4j output to console");
    +                   LogManager.getRootLogger().addAppender(new 
ConsoleAppender(new PatternLayout(DEFAULT_LOG4J_PATTERN_LAYOUT)));
    --- End diff --
    
    Okay. Let me see if I can come up with a workaround.


---
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