Details
Description
Using "hadoop fs -dus foobar/*" I found unexpected output to stdout as the first line prints some debugging information about kerberos tokens. This is breaking scripts which used to work with 0.20.x.
Retrieving token from: https://1.2.3.4:50470/getDelegationToken
hftp://blah.yahoo.net:50070/foo/bang 685256
hftp://blah.yahoo.net:50070/foo/bar 685256
hftp://blah.yahoo.net:50070/foo/baz 685256
[...]
Which appears to be coming from this line
./hadoop-0.21.0/hdfs/src/java/org/apache/hadoop/hdfs/tools/DelegationTokenFetcher.java:151: System.out.println("Retrieving token from: " +
I also see a few other cases here which should be changed to use a logging service, changed to System.err, or removed:
grep -n -2 System.out ./hadoop-0.21.0/hdfs/src/java/org/apache/hadoop/hdfs/tools/DelegationTokenFetcher.java
90-
91- out.flush();
92: System.out.println("Succesfully wrote token of size " +
93- out.size() + " bytes to "+ args[0]);
94- } catch (IOException ioe)
finally {
–
149-
150- try
catch (Exception e) {