HDFS-14931. hdfs crypto commands limit column width. Contributed by Eric Badger

(cherry picked from commit 9ef6ed9c1c)
This commit is contained in:
Eric Badger 2019-10-28 18:17:47 +00:00
parent fdd5ce1720
commit 5196b035f7
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ public class CryptoAdmin extends Configured implements Tool {
try {
final TableListing listing = new TableListing.Builder()
.addField("").addField("", true)
.wrapWidth(AdminHelper.MAX_LINE_WIDTH).hideHeaders().build();
.hideHeaders().build();
final RemoteIterator<EncryptionZone> it = admin.listEncryptionZones();
while (it.hasNext()) {
EncryptionZone ez = it.next();
@ -381,7 +381,7 @@ public class CryptoAdmin extends Configured implements Tool {
.addField("Number of files re-encrypted")
.addField("Number of failures")
.addField("Last File Checkpointed")
.wrapWidth(AdminHelper.MAX_LINE_WIDTH).showHeaders().build();
.showHeaders().build();
final RemoteIterator<ZoneReencryptionStatus> it =
admin.listReencryptionStatus();
boolean failuresMet = false;