From 9ef6ed9c1c83b9752e772ece7a716a33045752bf Mon Sep 17 00:00:00 2001 From: Eric Badger Date: Mon, 28 Oct 2019 16:37:04 +0000 Subject: [PATCH] HDFS-14931. hdfs crypto commands limit column width. Contributed by Eric Badger --- .../main/java/org/apache/hadoop/hdfs/tools/CryptoAdmin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CryptoAdmin.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CryptoAdmin.java index 5f4e7384761..712c7600621 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CryptoAdmin.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CryptoAdmin.java @@ -185,7 +185,7 @@ public int run(Configuration conf, List args) throws IOException { try { final TableListing listing = new TableListing.Builder() .addField("").addField("", true) - .wrapWidth(AdminHelper.MAX_LINE_WIDTH).hideHeaders().build(); + .hideHeaders().build(); final RemoteIterator it = admin.listEncryptionZones(); while (it.hasNext()) { EncryptionZone ez = it.next(); @@ -381,7 +381,7 @@ public int run(Configuration conf, List args) throws IOException { .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 it = admin.listReencryptionStatus(); boolean failuresMet = false;