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, 15 Jun 2006 23:39:37 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

------------------------------------------------------------------------------
  exactly one additional argument must be specified.
  A word about paths: a path may be relative or absolute. An absolute path starts with a '/',
a relative path does not, and always relates to /user/<currentUser>. There is no notion
of current working directory.
  
- -ls: 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
+ -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
   fileName   <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: 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 produces
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
+ 
+ -mv <src> <dst>: move a file or directory from one location in dfs to another.
Equivalent to the Unix command mv <src> < dst>
+ -cp <src> <dst>: copy a file or directory from one location in dfs to another.
Equivalent to the Unix command cp -rf <src> < dst>
+ -rm <src>: remove a file or directory. Equivlent to the Unix command "rm -rf <src>".
+ -put <localsrc> <dst>: copy a single file from the local file system into dfs.
+ -copyFromLocal <localsrc> <dst>: identical to the -put command
+ -moveFromLocal <localsrc> <dst>: same as -put, except that the source is deleted
after it's copied.
+ -get <src> <localdst>] [-cat <src>:
+ -copyToLocal <src><localdst>: copy a single file from dfs to a local file
+ -moveToLocal <src> <localdst>: not implemented yet
+ -mkdir <path>:
+ -report:
+ -setrep [-R] <rep> <path/file>
+ 

Mime
View raw message