Christoph Körner created OOZIE-3231:
---------------------------------------

             Summary: Oozie uses System.out.print to output ENV variables in 
ShellMain.java
                 Key: OOZIE-3231
                 URL: https://issues.apache.org/jira/browse/OOZIE-3231
             Project: Oozie
          Issue Type: Bug
          Components: action
    Affects Versions: 4.2.0, trunk
         Environment: We are using HDP 2.6.4 with Oozie 4.2
            Reporter: Christoph Körner


Oozie per default outputs debug information about the Shell Action such as 
command, arguments and environment variables which is then visible in the Yarn 
logs. This is indeed a nice feature for debugging.

However, to do so it uses System.out.print which makes it impossible to 
configure this behavior. It would be better to use a Logger class for this, 
such that this behavior can be tuned in the Oozie job/action configuration.

In Oozie 4.2. the problematic function is located here 
[https://github.com/apache/oozie/blob/branch-4.2/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/ShellMain.java#L244]
 - however the problem still exists on the master branch as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to