Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3231

Oozie uses System.out.print to output ENV variables in ShellMain.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • trunk, 4.2.0
    • None
    • action
    • None
    • We are using HDP 2.6.4 with Oozie 4.2

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              office@chaosmail.at Christoph Körner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: