HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem' (Contributed by Vinayakumar B)
(cherry picked from commit 166eecf687
)
This commit is contained in:
parent
0512e50d6e
commit
f0f3d1937d
|
@ -378,6 +378,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
HDFS-7537. Add "UNDER MIN REPL'D BLOCKS" count to fsck. (GAO Rui via
|
HDFS-7537. Add "UNDER MIN REPL'D BLOCKS" count to fsck. (GAO Rui via
|
||||||
szetszwo)
|
szetszwo)
|
||||||
|
|
||||||
|
HDFS-7832. Show 'Last Modified' in Namenode's 'Browse Filesystem'
|
||||||
|
(vinayakumarb)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-7454. Reduce memory footprint for AclEntries in NameNode.
|
HDFS-7454. Reduce memory footprint for AclEntries in NameNode.
|
||||||
|
|
|
@ -112,6 +112,7 @@
|
||||||
<th>Owner</th>
|
<th>Owner</th>
|
||||||
<th>Group</th>
|
<th>Group</th>
|
||||||
<th>Size</th>
|
<th>Size</th>
|
||||||
|
<th>Last Modified</th>
|
||||||
<th>Replication</th>
|
<th>Replication</th>
|
||||||
<th>Block Size</th>
|
<th>Block Size</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
|
@ -124,6 +125,7 @@
|
||||||
<td>{owner}</td>
|
<td>{owner}</td>
|
||||||
<td>{group}</td>
|
<td>{group}</td>
|
||||||
<td>{length|fmt_bytes}</td>
|
<td>{length|fmt_bytes}</td>
|
||||||
|
<td>{#helper_date_tostring value="{modificationTime}"/}</td>
|
||||||
<td>{replication}</td>
|
<td>{replication}</td>
|
||||||
<td>{blockSize|fmt_bytes}</td>
|
<td>{blockSize|fmt_bytes}</td>
|
||||||
<td><a style="cursor:pointer" inode-type="{type}" class="explorer-browse-links" inode-path="{pathSuffix}">{pathSuffix}</a></td>
|
<td><a style="cursor:pointer" inode-type="{type}" class="explorer-browse-links" inode-path="{pathSuffix}">{pathSuffix}</a></td>
|
||||||
|
|
|
@ -143,6 +143,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function browse_directory(dir) {
|
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';
|
var url = '/webhdfs/v1' + dir + '?op=LISTSTATUS';
|
||||||
$.get(url, function(data) {
|
$.get(url, function(data) {
|
||||||
var d = get_response(data, "FileStatuses");
|
var d = get_response(data, "FileStatuses");
|
||||||
|
@ -154,7 +160,8 @@
|
||||||
current_directory = dir;
|
current_directory = dir;
|
||||||
$('#directory').val(dir);
|
$('#directory').val(dir);
|
||||||
window.location.hash = 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);
|
$('#panel').html(out);
|
||||||
|
|
||||||
$('.explorer-browse-links').click(function() {
|
$('.explorer-browse-links').click(function() {
|
||||||
|
|
Loading…
Reference in New Issue