HADOOP-7011. Fix KerberosName.main() to not throw an NPE. Contributed by Aaron T. Myers.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1028938 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug Cutting 2010-10-29 22:55:53 +00:00
parent 0c462b223f
commit 6285cbb499
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -399,6 +399,7 @@ static void printRules() throws IOException {
}
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());