hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Lucene-hadoop Wiki] Update of "hadoop-0.1-dev/bin/hadoop dfs" by YoramArnon
Date Thu, 22 Jun 2006 00:41:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification.

The following page has been changed by YoramArnon:
http://wiki.apache.org/lucene-hadoop/hadoop-0%2e1-dev/bin/hadoop_dfs

------------------------------------------------------------------------------
  
  -ls <path>: list the contents of the specified path. If path is not specified, the
contents of /user/<currentUser> will be listed. The output contains one line of the
form
   Found n items
- followed by one line per directory and one line per file.  Directory entries are of the
form and file entries are of the form
+ followed by one line per directory and one line per file.  Directory entries are of the
form 
+  dirName (full path)   <dir>
+ and file entries are of the form
-  fileName   <r n>   size
+  fileName(full path)   <r n>   size
  where n is the number of replicas specified for the file and size is the size of the file,
in bytes.
  
- -lsr <path>: recursively list the contents of the specified path. Behaves very similarly
to hadoop dfs -ls, except that the first line (Found n items) is omitted, and data is produces
for all the entries in the subtree.
+ -lsr <path>: recursively list the contents of the specified path. Behaves very similarly
to hadoop dfs -ls, except that the first line (Found n items) is omitted, and data is shown
for all the entries in the subtree.
  
- -du <path>: show the amount of space, in bytes, used by given path. Equivalent to
the unix command "du -sb <path>/*" in case of a directory, and to "du -b <path>"
in case of a file
+ -du <path>: show the amount of space, in bytes, used by given path. Equivalent to
the unix command "du -sb <path>/*" in case of a directory, and to "du -b <path>"
in case of a file. The output is in the form
+  name(full path)  size (in bytes)
  
  -mv <src> <dst>: move a file or directory from one location in dfs to another.
Equivalent to the Unix command mv <src> < dst>
  

Mime
View raw message