You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@twill.apache.org by po...@apache.org on 2016/09/21 06:03:41 UTC

twill git commit: Fix a ClassCastException in YarnUtils.addDelegationTokens.

Repository: twill
Updated Branches:
  refs/heads/master ced2044f1 -> 2a8de333f


Fix a ClassCastException in YarnUtils.addDelegationTokens.

This closes #11

Signed-off-by: Poorna Chandra <po...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/twill/repo
Commit: http://git-wip-us.apache.org/repos/asf/twill/commit/2a8de333
Tree: http://git-wip-us.apache.org/repos/asf/twill/tree/2a8de333
Diff: http://git-wip-us.apache.org/repos/asf/twill/diff/2a8de333

Branch: refs/heads/master
Commit: 2a8de333f4014fbcbcde826e507b9d8810554ffc
Parents: ced2044
Author: Ali Anwar <an...@berkeley.edu>
Authored: Tue Sep 20 22:01:25 2016 -0700
Committer: Poorna Chandra <po...@apache.org>
Committed: Tue Sep 20 23:02:52 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/twill/internal/yarn/YarnUtils.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/twill/blob/2a8de333/twill-yarn/src/main/java/org/apache/twill/internal/yarn/YarnUtils.java
----------------------------------------------------------------------
diff --git a/twill-yarn/src/main/java/org/apache/twill/internal/yarn/YarnUtils.java b/twill-yarn/src/main/java/org/apache/twill/internal/yarn/YarnUtils.java
index e63deed..cb81bee 100644
--- a/twill-yarn/src/main/java/org/apache/twill/internal/yarn/YarnUtils.java
+++ b/twill-yarn/src/main/java/org/apache/twill/internal/yarn/YarnUtils.java
@@ -165,7 +165,7 @@ public class YarnUtils {
         tokens = ImmutableList.copyOf(fsTokens);
       }
     } else if (factory instanceof FileContextLocationFactory) {
-      FileContext fc = ((FileContextLocationFactory) locationFactory).getFileContext();
+      FileContext fc = ((FileContextLocationFactory) factory).getFileContext();
       tokens = fc.getDelegationTokens(new Path(locationFactory.create("/").toURI()), renewer);
     }