[ https://issues.apache.org/jira/browse/TWILL-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15883185#comment-15883185 ]
Terence Yim commented on TWILL-217: ----------------------------------- for this case, we can simply get the base classpath of any class in twill-api (using getResources, and I think we have a method to do that in the Dependencies class already), which will return the path to twill-api.jar (or directory in unit test case). Then we can just open the jar and include all .class from there to be included in dependency tracing. On upgrading the guava, it's a more complicated matter. Personally, in long run, I would like to reduce / remove the reliance on the guava libaray as it is always causing some kind of version compatibility issues in the past. > AppMaster launcher should include eventHandler dependencies and nothing else > from application > --------------------------------------------------------------------------------------------- > > Key: TWILL-217 > URL: https://issues.apache.org/jira/browse/TWILL-217 > Project: Apache Twill > Issue Type: Improvement > Components: yarn > Affects Versions: 0.9.0 > Reporter: Martin Serrano > Assignee: Martin Serrano > > 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. -- This message was sent by Atlassian JIRA (v6.3.15#6346)