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

OozieSharelibCLI shouldn't load ext services

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.1.0
    • Component/s: tools
    • Labels:
      None

      Description

      OozieSharelibCLI (invoked via running oozie-setup.sh sharelib commands) should not load the ext services (i.e. oozie.services.ext). This is unnecessary and can even lead to problems. For example, if you enable JMS/SLA messaging, you'll add the EventHandlerService which will get loaded when you run OozieSharelibCLI; however, this will fail because OozieSharelibCLI doesn't load the SchedulerService, which EventHandlerService tries to use and you get an NullPointerException. This prevents anyone who is using this feature from (easily) updating their sharelib.

      This isn't a problem for OozieDBCLI even though it uses Services because it doesn't actually init() them.

        Attachments

        1. OOZIE-1823.patch
          1 kB
          Robert Kanter

          Activity

            People

            • Assignee:
              rkanter Robert Kanter
              Reporter:
              rkanter Robert Kanter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: