File tree Expand file tree Collapse file tree
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1024,14 +1024,14 @@ public int listOpenFiles(String[] argv) throws IOException {
10241024
10251025 private void printOpenFiles (RemoteIterator <OpenFileEntry > openFilesIterator )
10261026 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" );
10291029 while (openFilesIterator .hasNext ()) {
10301030 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 " ,
10321032 openFileEntry .getClientMachine (),
10331033 openFileEntry .getClientName (),
1034- openFileEntry .getFilePath ())) ;
1034+ openFileEntry .getFilePath ());
10351035 }
10361036 }
10371037
You can’t perform that action at this time.
0 commit comments