hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077310 - /hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/tools/DFSck.java
Date Fri, 04 Mar 2011 04:02:14 GMT
Author: omalley
Date: Fri Mar  4 04:02:13 2011
New Revision: 1077310

URL: http://svn.apache.org/viewvc?rev=1077310&view=rev
Log:
commit 80b7ddb93e7cf5fbd0cfb7f190b25b25d57a68d5
Author: Devaraj Das <ddas@yahoo-inc.com>
Date:   Wed Mar 10 20:16:01 2010 -0800

    HDFS:1005 from https://issues.apache.org/jira/secure/attachment/12438474/HDFS-1005-BP20-1.patch
    
    +++ b/YAHOO-CHANGES.txt
    +    HDFS-1005. Fixes a bug to do with calling the cross-realm API in Fsck
    +    client. (ddas)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/tools/DFSck.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/tools/DFSck.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/tools/DFSck.java?rev=1077310&r1=1077309&r2=1077310&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/tools/DFSck.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/hdfs/org/apache/hadoop/hdfs/tools/DFSck.java
Fri Mar  4 04:02:13 2011
@@ -31,6 +31,7 @@ import org.apache.hadoop.conf.Configured
 import org.apache.hadoop.hdfs.server.namenode.NamenodeFsck;
 import org.apache.hadoop.net.NetUtils;
 import org.apache.hadoop.security.Krb5AndCertsSslSocketConnector;
+import org.apache.hadoop.security.SecurityUtil;
 import org.apache.hadoop.security.UserGroupInformation;
 import org.apache.hadoop.util.Tool;
 import org.apache.hadoop.util.ToolRunner;
@@ -142,6 +143,7 @@ public class DFSck extends Configured im
             else if (args[idx].equals("-racks")) { url.append("&racks=1"); }
           }
           URL path = new URL(url.toString());
+          SecurityUtil.fetchServiceTicket(path);
           URLConnection connection = path.openConnection();
           InputStream stream = connection.getInputStream();
           BufferedReader input = new BufferedReader(new InputStreamReader(



Mime
View raw message