You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2006/06/30 23:20:33 UTC

[Lucene-hadoop Wiki] Update of "hadoop-0.1-dev/bin/hadoop dfs" by HairongKuang

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 HairongKuang:
http://wiki.apache.org/lucene-hadoop/hadoop-0%2e1-dev/bin/hadoop_dfs

------------------------------------------------------------------------------
  hadoop dfs is the command used to execute dfs commands. The full syntax is 
- hadoop dfs [-local | -dfs <namenode:port>] [-ls <path>] [-lsr <path>] [-du <path>] [-mv <src> <dst>] [-cp <src> <dst>] [-rm <src>] [-put <localsrc> <dst>] [-copyFromLocal <localsrc> <dst>] [-moveFromLocal <localsrc> <dst>] [-get <src> <localdst>] [-cat <src>] [-copyToLocal <src><localdst>] [-moveToLocal <src> <localdst>] [-mkdir <path>] [-report] [-setrep [-R] <rep> <path/file>]
+ hadoop dfs -fs [local | <namenode:port>] [-ls <path>] [-lsr <path>] [-du <path>] [-mv <src> <dst>] [-cp <src> <dst>] [-rm <src>] [-put <localsrc> <dst>] [-copyFromLocal <localsrc> <dst>] [-moveFromLocal <localsrc> <dst>] [-get <src> <localdst>] [-cat <src>] [-copyToLocal <src><localdst>] [-moveToLocal <src> <localdst>] [-mkdir <path>] [-report] [-setrep [-R] <rep> <path/file>]
  
- [-local | -dfs <namenode:port>]: if not specified, the current configuration is used, taken from the following, in increasing precedence:
+ -fs [local | <namenode:port>]: if not specified, the current configuration is used, taken from the following, in increasing precedence:
     * hadoop-default.xml inside the hadoop jar file
     * hadoop-default.xml in $HADOOP_CONF_DIR
     * hadoop-site.xml in $HADOOP_CONF_DIR
- -local means use the local file system as your DFS, -dfs <namenode:port> specifies a particular name node to contact.
+ local means use the local file system as your DFS, -<namenode:port> specifies a particular name node to contact.
  this argument is optional but if used must appear first on the command line.
  
  exactly one additional argument must be specified.