瀏覽代碼

HADOOP-8338. Fix renew and cancel of RPC HDFS delegation tokens. (omalley)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0@1332914 13f79535-47bb-0310-9956-ffa450edef68
Owen O'Malley 13 年之前
父節點
當前提交
7e4af4bae7
共有 2 個文件被更改,包括 13 次插入4 次删除
  1. 8 4
      CHANGES.txt
  2. 5 0
      src/hdfs/org/apache/hadoop/hdfs/tools/DelegationTokenFetcher.java

+ 8 - 4
CHANGES.txt

@@ -39,10 +39,12 @@ Release 1.0.3 - unreleased
     MAPREDUCE-4154. streaming MR job succeeds even if the streaming command 
     fails. (Devaraj Das via tgraves)
 
-    HDFS-119. Fix a bug in logSync(), which causes NameNode block forever. (shv)
+    HDFS-119. Fix a bug in logSync(), which causes NameNode block forever. 
+    (shv)
 
-    HADOOP-8294. IPC Connection becomes unusable even if server address was temporarilly
-    unresolvable. Backport of HADOOP-7428. (Kihwal Lee via mattf)
+    HADOOP-8294. IPC Connection becomes unusable even if server address 
+    was temporarilly unresolvable. Backport of HADOOP-7428. (Kihwal Lee via 
+    mattf)
 
     HDFS-3310. Make sure that we abort when no edit log directories are left.
     (Colin Patrick McCabe via eli)
@@ -53,11 +55,13 @@ Release 1.0.3 - unreleased
     HDFS-3265. PowerPc Build error. (Kumar Ravi via mattf)
 
     HDFS-3316. The tar ball doesn't include jsvc any more.
-    (Owen O'Malley via mattf)
+    (omalley via mattf)
 
     HDFS-1041. DFSClient.getFileChecksum(..) should retry if connection to
     the first datanode fails.  (szetszwo)
 
+    HADOOP-8338. Fix renew and cancel of RPC HDFS delegation tokens. (omalley)
+
 Release 1.0.2 - 2012.03.24
 
   NEW FEATURES

+ 5 - 0
src/hdfs/org/apache/hadoop/hdfs/tools/DelegationTokenFetcher.java

@@ -56,6 +56,11 @@ import org.apache.hadoop.util.GenericOptionsParser;
  */
 public class DelegationTokenFetcher {
   
+  static{
+    Configuration.addDefaultResource("hdfs-default.xml");
+    Configuration.addDefaultResource("hdfs-site.xml");
+  }
+
   private static final Log LOG = 
     LogFactory.getLog(DelegationTokenFetcher.class);
   private static final String WEBSERVICE = "webservice";