File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1024,14 +1024,14 @@ public int listOpenFiles(String[] argv) throws IOException {
1024
1024
1025
1025
private void printOpenFiles (RemoteIterator <OpenFileEntry > openFilesIterator )
1026
1026
throws IOException {
1027
- System .out .println ( String . format ( "%-20s\t %-20s\t %s" , "Client Host" ,
1028
- "Client Name" , "Open File Path" ) );
1027
+ System .out .printf ( "%-20s\t %-20s\t %s%n " , "Client Host" ,
1028
+ "Client Name" , "Open File Path" );
1029
1029
while (openFilesIterator .hasNext ()) {
1030
1030
OpenFileEntry openFileEntry = openFilesIterator .next ();
1031
- System .out .println ( String . format ( "%-20s\t %-20s\t %20s" ,
1031
+ System .out .printf ( "%-20s\t %-20s\t %20s%n " ,
1032
1032
openFileEntry .getClientMachine (),
1033
1033
openFileEntry .getClientName (),
1034
- openFileEntry .getFilePath ())) ;
1034
+ openFileEntry .getFilePath ());
1035
1035
}
1036
1036
}
1037
1037
You can’t perform that action at this time.
0 commit comments