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

    https://github.com/apache/twill/pull/39#discussion_r107264780
  
    --- Diff: 
twill-yarn/src/main/java/org/apache/twill/yarn/YarnTwillPreparer.java ---
    @@ -455,21 +475,40 @@ private void saveLogLevels(String runnableName, 
Map<String, LogEntry.Level> logL
         this.logLevels.put(runnableName, newLevels);
       }
     
    +  /**
    +   * Creates an {@link Credentials} by copying the {@link Credentials} of 
the current user.
    +   */
       private Credentials createCredentials() {
         Credentials credentials = new Credentials();
     
         try {
           
credentials.addAll(UserGroupInformation.getCurrentUser().getCredentials());
    +    } catch (IOException e) {
    --- End diff --
    
    I don't think so. Even if this call fail, if the caller is able to acquire 
required credentials in his own way and add them via the `addSecureStore` 
method, then the app can still be submitted and executed correctly.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to