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:
parent
fbf3a9ee3d
commit
ca9b4de772
|
@ -117,6 +117,9 @@ Trunk (unreleased changes)
|
||||||
HDFS-2908. Add apache license header for StorageReport.java. (Brandon Li
|
HDFS-2908. Add apache license header for StorageReport.java. (Brandon Li
|
||||||
via jitendra)
|
via jitendra)
|
||||||
|
|
||||||
|
HDFS-3012. Exception while renewing delegation token. (Bobby Evans via
|
||||||
|
jitendra)
|
||||||
|
|
||||||
Release 0.23.3 - UNRELEASED
|
Release 0.23.3 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -610,6 +610,12 @@ public class DFSClient implements java.io.Closeable {
|
||||||
@InterfaceAudience.Private
|
@InterfaceAudience.Private
|
||||||
public static class Renewer extends TokenRenewer {
|
public static class Renewer extends TokenRenewer {
|
||||||
|
|
||||||
|
static {
|
||||||
|
//Ensure that HDFS Configuration files are loaded before trying to use
|
||||||
|
// the renewer.
|
||||||
|
HdfsConfiguration.init();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handleKind(Text kind) {
|
public boolean handleKind(Text kind) {
|
||||||
return DelegationTokenIdentifier.HDFS_DELEGATION_KIND.equals(kind);
|
return DelegationTokenIdentifier.HDFS_DELEGATION_KIND.equals(kind);
|
||||||
|
|
Loading…
Reference in New Issue