Uploaded image for project: 'Apache Twill (Retired)'
  1. Apache Twill (Retired)
  2. TWILL-217

AppMaster launcher should include eventHandler dependencies and nothing else from application

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 0.9.0
    • None
    • yarn
    • None

    Description

      Currently the launcher for the appmaster includes the application.jar libraries. This is to support user code that adds an EventHandler. The application may have many dependencies and including them in the appmaster classpath can lead to otherwise inaddressable incompatibilities.

      In my case, something in my application's large dependency graph was interfering with the Kafka server operation. I was not able to determine what it was but tweaking the appmaster loader to not include my application jars fixed the issue.

      Instead the bundler that creates the twill.jar should include the EventHandler extension (if any) as an explicit dependency. In this way, only the jars needed to support the event handler will be on the twill classpath.

      Attachments

        Activity

          People

            mserrano Martin Serrano
            mserrano Martin Serrano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: