hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r1028938 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/security/KerberosName.java
Date Fri, 29 Oct 2010 22:55:53 GMT
Author: cutting
Date: Fri Oct 29 22:55:53 2010
New Revision: 1028938

URL: http://svn.apache.org/viewvc?rev=1028938&view=rev
Log:
HADOOP-7011.  Fix KerberosName.main() to not throw an NPE.  Contributed by Aaron T. Myers.

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/security/KerberosName.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1028938&r1=1028937&r2=1028938&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Fri Oct 29 22:55:53 2010
@@ -289,6 +289,9 @@ Trunk (unreleased changes)
     HADOOP-6991.  Fix SequenceFile::Reader to honor file lengths and call
     openFile (cdouglas via omalley)
 
+    HADOOP-7011.  Fix KerberosName.main() to not throw an NPE.
+    (Aaron T. Myers via tomwhite)
+
 Release 0.21.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/security/KerberosName.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/security/KerberosName.java?rev=1028938&r1=1028937&r2=1028938&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/security/KerberosName.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/security/KerberosName.java Fri Oct 29 22:55:53
2010
@@ -399,9 +399,10 @@ public class KerberosName {
   }
 
   public static void main(String[] args) throws Exception {
+    setConfiguration(new Configuration());
     for(String arg: args) {
       KerberosName name = new KerberosName(arg);
       System.out.println("Name: " + name + " to " + name.getShortName());
     }
   }
-}
\ No newline at end of file
+}



Mime
View raw message