Github user chtyim commented on a diff in the pull request:

    https://github.com/apache/incubator-twill/pull/66#discussion_r41659626
  
    --- Diff: 
twill-yarn/src/main/java/org/apache/twill/yarn/YarnTwillRunnerService.java ---
    @@ -175,6 +187,36 @@ protected void shutDown() throws Exception {
         };
       }
     
    +  public Location createTwillJar() throws IOException {
    +    ApplicationBundler applicationBundler = new ApplicationBundler(new 
ClassAcceptor());
    +    List<Class<?>> classes = Lists.newArrayList();
    +    classes.add(ApplicationMasterMain.class);
    +    classes.add(TwillContainerMain.class);
    +    // Stuck in the yarnAppClient class to make bundler being able to 
pickup the right yarn-client version
    +    classes.add(yarnAppClient.getClass());
    +
    +    twillDependencyClasses = getTwillDependencyClasses(classes);
    +    File tempFile = File.createTempFile("twill", ".jar");
    +    Location twillJar = new 
LocalLocationFactory().create(tempFile.toURI());
    --- End diff --
    
    Why need to wrap it to location? Can't it be just `File`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to