Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-3080

[oozie] Incorrect timezone in job.properties

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.10.0
    • Fix Version/s: 3.10.0
    • Component/s: con.oozie
    • Labels:
      None

      Description

      With HUE-1910, oozie.processing.timezone is used in the Web UI. However, the generated start_date and end_date in job.properties is still UTC.

      The following code seems responsible for that:

      apps/oozie/src/oozie/utils.py
      def convert_to_server_timezone(date, local_tz='UTC', server_tz='UTC', user=DEFAULT_USER):
        api = get_oozie(user)
        oozie_conf = api.get_configuration()
        if server_tz is None:
          server_tz = oozie_conf['oozie.processing.timezone']
      

      server_tz should have the default value of None instead of 'UTC'?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krish Sai K Chirravuri
                Reporter:
                liuchengbing Chengbing Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: