HDFS-14916. RBF: line breaks are missing from the output of 'hdfs dfsrouteradmin -ls'. Contributed by Xieming Li.

This commit is contained in:
Ayush Saxena 2019-10-21 18:20:00 +05:30
parent 447f46d962
commit ff6a492d66
1 changed files with 2 additions and 1 deletions

View File

@ -788,9 +788,10 @@ public class RouterAdmin extends Configured implements Tool {
System.out.print( System.out.print(
String.format(" %-10s", entry.isReadOnly() ? "Read-Only" : "")); String.format(" %-10s", entry.isReadOnly() ? "Read-Only" : ""));
System.out.println(String.format(" %-15s", System.out.print(String.format(" %-15s",
entry.isFaultTolerant() ? "Fault-Tolerant" : "")); entry.isFaultTolerant() ? "Fault-Tolerant" : ""));
} }
System.out.println();
} }
} }