From 4e197a4b461348420ea15f29c8cf34d3df6b4191 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Mon, 13 Aug 2018 11:35:19 -0700 Subject: [PATCH] HDFS-13823. NameNode UI : "Utilities -> Browse the file system -> open a file -> Head the file" is not working. Contributed by Nanda kumar. --- .../hadoop-hdfs/src/main/webapps/hdfs/explorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js index 05f8df68e41..898b1f36d9c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js @@ -208,7 +208,7 @@ processData: false, crossDomain: true }).always(function(data) { - $('#file-info-preview-body').val(data.responseText); + $('#file-info-preview-body').val(data); $('#file-info-tail').show(); }).fail(function(jqXHR, textStatus, errorThrown) { show_err_msg("Couldn't preview the file. " + errorThrown);