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:
parent
0c462b223f
commit
6285cbb499
@ -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
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user