svn merge -c 1573604 merging from trunk to branch-2 to fix:HADOOP-10314. The ls command help still shows outdated 0.16 format. Contributed by Rushabh S Shah.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1573605 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1754ca0b90
commit
31cf2ef1ca
|
@ -49,6 +49,9 @@ Release 2.4.0 - UNRELEASED
|
|||
HADOOP-10285. Admin interface to swap callqueue at runtime. (Chris Li via
|
||||
Arpit Agarwal)
|
||||
|
||||
HADOOP-10314. The ls command help still shows outdated 0.16 format.
|
||||
(Rushabh S Shah via kihwal)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
|
|
@ -54,16 +54,16 @@ class Ls extends FsCommand {
|
|||
"List the contents that match the specified file pattern. If\n" +
|
||||
"path is not specified, the contents of /user/<currentUser>\n" +
|
||||
"will be listed. Directory entries are of the form \n" +
|
||||
"\tdirName (full path) <dir> \n" +
|
||||
"\tpermissions - userid groupid size_of_directory(in bytes) modification_date(yyyy-MM-dd HH:mm) directoryName \n" +
|
||||
"and file entries are of the form \n" +
|
||||
"\tfileName(full path) <r n> size \n" +
|
||||
"where n is the number of replicas specified for the file \n" +
|
||||
"and size is the size of the file, in bytes.\n" +
|
||||
"\tpermissions number_of_replicas userid groupid size_of_file(in bytes) modification_date(yyyy-MM-dd HH:mm) fileName \n" +
|
||||
" -d Directories are listed as plain files.\n" +
|
||||
" -h Formats the sizes of files in a human-readable fashion\n" +
|
||||
" rather than a number of bytes.\n" +
|
||||
" -R Recursively list the contents of directories.";
|
||||
|
||||
|
||||
|
||||
protected static final SimpleDateFormat dateFormat =
|
||||
new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
</comparator>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
<expected-output>^( |\t)*dirName \(full path\) <dir>( )*</expected-output>
|
||||
<expected-output>^( |\t)*permissions - userid groupid size_of_directory\(in bytes\) modification_date\(yyyy-MM-dd HH:mm\) directoryName( )*</expected-output>
|
||||
</comparator>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
|
@ -78,15 +78,7 @@
|
|||
</comparator>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
<expected-output>^( |\t)*fileName\(full path\) <r n> size( )*</expected-output>
|
||||
</comparator>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
<expected-output>^( |\t)*where n is the number of replicas specified for the file( )*</expected-output>
|
||||
</comparator>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
<expected-output>^( |\t)*and size is the size of the file, in bytes.( )*</expected-output>
|
||||
<expected-output>^( |\t)*permissions number_of_replicas userid groupid size_of_file\(in bytes\) modification_date\(yyyy-MM-dd HH:mm\) fileName( )*</expected-output>
|
||||
</comparator>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
|
|
Loading…
Reference in New Issue