瀏覽代碼

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

(cherry picked from commit 9ef6ed9c1c83b9752e772ece7a716a33045752bf)
Kihwal Lee 5 年之前
父節點
當前提交
54c7d23e58

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CryptoAdmin.java

@@ -182,7 +182,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();