HDFS-3012. Exception while renewing delegation token. Contributed by Bobby Evans.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1295232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jitendra Nath Pandey 2012-02-29 19:36:17 +00:00
parent fbf3a9ee3d
commit ca9b4de772
2 changed files with 9 additions and 0 deletions

View File

@ -117,6 +117,9 @@ Trunk (unreleased changes)
HDFS-2908. Add apache license header for StorageReport.java. (Brandon Li
via jitendra)
HDFS-3012. Exception while renewing delegation token. (Bobby Evans via
jitendra)
Release 0.23.3 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -610,6 +610,12 @@ public class DFSClient implements java.io.Closeable {
@InterfaceAudience.Private
public static class Renewer extends TokenRenewer {
static {
//Ensure that HDFS Configuration files are loaded before trying to use
// the renewer.
HdfsConfiguration.init();
}
@Override
public boolean handleKind(Text kind) {
return DelegationTokenIdentifier.HDFS_DELEGATION_KIND.equals(kind);