[08/50] [abbrv] hadoop git commit: HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' (Contributed by Vinayakumar B)
HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' (Contributed by Vinayakumar B) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/199a82d4 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/199a82d4 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/199a82d4 Branch: refs/heads/HDFS-7285 Commit: 199a82d4a68ebfacab4d2e1b263d332b8f2156dc Parents: 9f356cf Author: Vinayakumar B vinayakum...@apache.org Authored: Thu Feb 26 14:36:09 2015 +0530 Committer: Zhe Zhang zhezh...@cloudera.com Committed: Mon Mar 2 09:13:51 2015 -0800 -- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop-hdfs/src/main/webapps/hdfs/explorer.html | 2 ++ .../hadoop-hdfs/src/main/webapps/hdfs/explorer.js | 9 - 3 files changed, 13 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/hadoop/blob/199a82d4/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt -- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 4523bf4..e09714f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -676,6 +676,9 @@ Release 2.7.0 - UNRELEASED HDFS-7537. Add UNDER MIN REPL'D BLOCKS count to fsck. (GAO Rui via szetszwo) +HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' +(vinayakumarb) + OPTIMIZATIONS HDFS-7454. Reduce memory footprint for AclEntries in NameNode. http://git-wip-us.apache.org/repos/asf/hadoop/blob/199a82d4/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html -- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html index e1fdfa3..7b34044 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html @@ -112,6 +112,7 @@ thOwner/th thGroup/th thSize/th +thLast Modified/th thReplication/th thBlock Size/th thName/th @@ -124,6 +125,7 @@ td{owner}/td td{group}/td td{length|fmt_bytes}/td +td{#helper_date_tostring value={modificationTime}/}/td td{replication}/td td{blockSize|fmt_bytes}/td tda style=cursor:pointer inode-type={type} class=explorer-browse-links inode-path={pathSuffix}{pathSuffix}/a/td http://git-wip-us.apache.org/repos/asf/hadoop/blob/199a82d4/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js -- 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 87d47fa..0a53dcd 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 @@ -143,6 +143,12 @@ } function browse_directory(dir) { +var HELPERS = { + 'helper_date_tostring' : function (chunk, ctx, bodies, params) { +var value = dust.helpers.tap(params.value, chunk, ctx); +return chunk.write('' + new Date(Number(value)).toLocaleString()); + } +}; var url = '/webhdfs/v1' + dir + '?op=LISTSTATUS'; $.get(url, function(data) { var d = get_response(data, FileStatuses); @@ -154,7 +160,8 @@ current_directory = dir; $('#directory').val(dir); window.location.hash = dir; - dust.render('explorer', d, function(err, out) { + var base = dust.makeBase(HELPERS); + dust.render('explorer', base.push(d), function(err, out) { $('#panel').html(out); $('.explorer-browse-links').click(function() {
hadoop git commit: HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' (Contributed by Vinayakumar B)
Repository: hadoop Updated Branches: refs/heads/branch-2 0512e50d6 - f0f3d1937 HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' (Contributed by Vinayakumar B) (cherry picked from commit 166eecf687765f369cd5bf210cc6d7bf493121ea) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/f0f3d193 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/f0f3d193 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/f0f3d193 Branch: refs/heads/branch-2 Commit: f0f3d1937db2f43479b3daa6890dce1f86c1aa23 Parents: 0512e50 Author: Vinayakumar B vinayakum...@apache.org Authored: Thu Feb 26 14:36:09 2015 +0530 Committer: Vinayakumar B vinayakum...@apache.org Committed: Thu Feb 26 14:37:03 2015 +0530 -- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop-hdfs/src/main/webapps/hdfs/explorer.html | 2 ++ .../hadoop-hdfs/src/main/webapps/hdfs/explorer.js | 9 - 3 files changed, 13 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/hadoop/blob/f0f3d193/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt -- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index cda4b7d..f59bb71 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -378,6 +378,9 @@ Release 2.7.0 - UNRELEASED HDFS-7537. Add UNDER MIN REPL'D BLOCKS count to fsck. (GAO Rui via szetszwo) +HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' +(vinayakumarb) + OPTIMIZATIONS HDFS-7454. Reduce memory footprint for AclEntries in NameNode. http://git-wip-us.apache.org/repos/asf/hadoop/blob/f0f3d193/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html -- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html index e1fdfa3..7b34044 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html @@ -112,6 +112,7 @@ thOwner/th thGroup/th thSize/th +thLast Modified/th thReplication/th thBlock Size/th thName/th @@ -124,6 +125,7 @@ td{owner}/td td{group}/td td{length|fmt_bytes}/td +td{#helper_date_tostring value={modificationTime}/}/td td{replication}/td td{blockSize|fmt_bytes}/td tda style=cursor:pointer inode-type={type} class=explorer-browse-links inode-path={pathSuffix}{pathSuffix}/a/td http://git-wip-us.apache.org/repos/asf/hadoop/blob/f0f3d193/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js -- 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 87d47fa..0a53dcd 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 @@ -143,6 +143,12 @@ } function browse_directory(dir) { +var HELPERS = { + 'helper_date_tostring' : function (chunk, ctx, bodies, params) { +var value = dust.helpers.tap(params.value, chunk, ctx); +return chunk.write('' + new Date(Number(value)).toLocaleString()); + } +}; var url = '/webhdfs/v1' + dir + '?op=LISTSTATUS'; $.get(url, function(data) { var d = get_response(data, FileStatuses); @@ -154,7 +160,8 @@ current_directory = dir; $('#directory').val(dir); window.location.hash = dir; - dust.render('explorer', d, function(err, out) { + var base = dust.makeBase(HELPERS); + dust.render('explorer', base.push(d), function(err, out) { $('#panel').html(out); $('.explorer-browse-links').click(function() {
hadoop git commit: HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' (Contributed by Vinayakumar B)
Repository: hadoop Updated Branches: refs/heads/trunk 71385f9b7 - 166eecf68 HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' (Contributed by Vinayakumar B) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/166eecf6 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/166eecf6 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/166eecf6 Branch: refs/heads/trunk Commit: 166eecf687765f369cd5bf210cc6d7bf493121ea Parents: 71385f9 Author: Vinayakumar B vinayakum...@apache.org Authored: Thu Feb 26 14:36:09 2015 +0530 Committer: Vinayakumar B vinayakum...@apache.org Committed: Thu Feb 26 14:36:09 2015 +0530 -- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop-hdfs/src/main/webapps/hdfs/explorer.html | 2 ++ .../hadoop-hdfs/src/main/webapps/hdfs/explorer.js | 9 - 3 files changed, 13 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/hadoop/blob/166eecf6/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt -- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 4523bf4..e09714f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -676,6 +676,9 @@ Release 2.7.0 - UNRELEASED HDFS-7537. Add UNDER MIN REPL'D BLOCKS count to fsck. (GAO Rui via szetszwo) +HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' +(vinayakumarb) + OPTIMIZATIONS HDFS-7454. Reduce memory footprint for AclEntries in NameNode. http://git-wip-us.apache.org/repos/asf/hadoop/blob/166eecf6/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html -- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html index e1fdfa3..7b34044 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html @@ -112,6 +112,7 @@ thOwner/th thGroup/th thSize/th +thLast Modified/th thReplication/th thBlock Size/th thName/th @@ -124,6 +125,7 @@ td{owner}/td td{group}/td td{length|fmt_bytes}/td +td{#helper_date_tostring value={modificationTime}/}/td td{replication}/td td{blockSize|fmt_bytes}/td tda style=cursor:pointer inode-type={type} class=explorer-browse-links inode-path={pathSuffix}{pathSuffix}/a/td http://git-wip-us.apache.org/repos/asf/hadoop/blob/166eecf6/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js -- 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 87d47fa..0a53dcd 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 @@ -143,6 +143,12 @@ } function browse_directory(dir) { +var HELPERS = { + 'helper_date_tostring' : function (chunk, ctx, bodies, params) { +var value = dust.helpers.tap(params.value, chunk, ctx); +return chunk.write('' + new Date(Number(value)).toLocaleString()); + } +}; var url = '/webhdfs/v1' + dir + '?op=LISTSTATUS'; $.get(url, function(data) { var d = get_response(data, FileStatuses); @@ -154,7 +160,8 @@ current_directory = dir; $('#directory').val(dir); window.location.hash = dir; - dust.render('explorer', d, function(err, out) { + var base = dust.makeBase(HELPERS); + dust.render('explorer', base.push(d), function(err, out) { $('#panel').html(out); $('.explorer-browse-links').click(function() {
[08/17] hadoop git commit: HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' (Contributed by Vinayakumar B)
HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' (Contributed by Vinayakumar B) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/166eecf6 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/166eecf6 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/166eecf6 Branch: refs/heads/YARN-2928 Commit: 166eecf687765f369cd5bf210cc6d7bf493121ea Parents: 71385f9 Author: Vinayakumar B vinayakum...@apache.org Authored: Thu Feb 26 14:36:09 2015 +0530 Committer: Vinayakumar B vinayakum...@apache.org Committed: Thu Feb 26 14:36:09 2015 +0530 -- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop-hdfs/src/main/webapps/hdfs/explorer.html | 2 ++ .../hadoop-hdfs/src/main/webapps/hdfs/explorer.js | 9 - 3 files changed, 13 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/hadoop/blob/166eecf6/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt -- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 4523bf4..e09714f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -676,6 +676,9 @@ Release 2.7.0 - UNRELEASED HDFS-7537. Add UNDER MIN REPL'D BLOCKS count to fsck. (GAO Rui via szetszwo) +HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' +(vinayakumarb) + OPTIMIZATIONS HDFS-7454. Reduce memory footprint for AclEntries in NameNode. http://git-wip-us.apache.org/repos/asf/hadoop/blob/166eecf6/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html -- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html index e1fdfa3..7b34044 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.html @@ -112,6 +112,7 @@ thOwner/th thGroup/th thSize/th +thLast Modified/th thReplication/th thBlock Size/th thName/th @@ -124,6 +125,7 @@ td{owner}/td td{group}/td td{length|fmt_bytes}/td +td{#helper_date_tostring value={modificationTime}/}/td td{replication}/td td{blockSize|fmt_bytes}/td tda style=cursor:pointer inode-type={type} class=explorer-browse-links inode-path={pathSuffix}{pathSuffix}/a/td http://git-wip-us.apache.org/repos/asf/hadoop/blob/166eecf6/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js -- 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 87d47fa..0a53dcd 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 @@ -143,6 +143,12 @@ } function browse_directory(dir) { +var HELPERS = { + 'helper_date_tostring' : function (chunk, ctx, bodies, params) { +var value = dust.helpers.tap(params.value, chunk, ctx); +return chunk.write('' + new Date(Number(value)).toLocaleString()); + } +}; var url = '/webhdfs/v1' + dir + '?op=LISTSTATUS'; $.get(url, function(data) { var d = get_response(data, FileStatuses); @@ -154,7 +160,8 @@ current_directory = dir; $('#directory').val(dir); window.location.hash = dir; - dust.render('explorer', d, function(err, out) { + var base = dust.makeBase(HELPERS); + dust.render('explorer', base.push(d), function(err, out) { $('#panel').html(out); $('.explorer-browse-links').click(function() {