标签:
The File System (FS) shell includes various shell-like commands that directly interact with the Hadoop Distributed File System (HDFS) as well as other file systems that Hadoop supports, such as Local FS, HFTP FS, S3 FS, and others. The FS shell is invoked by:
bin/hadoop fs <args>
Usage: hadoop fs -appendToFile <localsrc> ... <dst>
Usage: hadoop fs -cat URI [URI ...]
Usage: hadoop fs -checksum URI
Usage: hadoop fs -chgrp [-R] GROUP URI [URI ...]
Usage: hadoop fs -chmod [-R] <MODE[,MODE]... | OCTALMODE> URI [URI ...]
Usage: hadoop fs -chown [-R] [OWNER][:[GROUP]] URI [URI ]
Usage: hadoop fs -copyFromLocal <localsrc> URI
Usage: hadoop fs -copyToLocal [-ignorecrc] [-crc] URI <localdst>
Usage: hadoop fs -count [-q] [-h] [-v] <paths>
Usage: hadoop fs -cp [-f] [-p | -p[topax]] URI [URI ...] <dest>
Usage: hadoop fs -df [-h] URI [URI ...]
Usage: hadoop fs -du [-s] [-h] URI [URI ...]
Usage: hadoop fs -dus <args>
Usage: hadoop fs -expunge
Usage: hadoop fs -find <path> ... <expression> ...
Usage: hadoop fs -get [-ignorecrc] [-crc] <src> <localdst>
Usage: hadoop fs -getfacl [-R] <path>
Usage: hadoop fs -getfattr [-R] -n name | -d [-e en] <path>
Usage: hadoop fs -getmerge <src> <localdst> [addnl]
Usage: hadoop fs -help
Usage: hadoop fs -ls [-d] [-h] [-R] [-t] [-S] [-r] [-u] <args>
Usage: hadoop fs -lsr <args>
Usage: hadoop fs -mkdir [-p] <paths>
Usage: hadoop fs -moveFromLocal <localsrc> <dst>
Usage: hadoop fs -moveToLocal [-crc] <src> <dst>
Usage: hadoop fs -mv URI [URI ...] <dest>
Usage: hadoop fs -put <localsrc> ... <dst>
Usage: hadoop fs -rm [-f] [-r |-R] [-skipTrash] URI [URI ...]
Usage: hadoop fs -rmdir [--ignore-fail-on-non-empty] URI [URI ...]
Usage: hadoop fs -rmr [-skipTrash] URI [URI ...]
Usage: hadoop fs -setfacl [-R] [-b |-k -m |-x <acl_spec> <path>] |[--set <acl_spec> <path>]
Usage: hadoop fs -setfattr -n name [-v value] | -x name <path>
Usage: hadoop fs -setrep [-R] [-w] <numReplicas> <path>
Usage: hadoop fs -stat [format] <path> ...
Usage: hadoop fs -tail [-f] URI
Usage: hadoop fs -test -[defsz] URI
Usage: hadoop fs -text <src>
Usage: hadoop fs -touchz URI [URI ...]
Usage: hadoop fs -truncate [-w] <length> <paths>
Usage: hadoop fs -usage command
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/FileSystemShell.html
标签:
原文地址:http://www.cnblogs.com/guanx_214/p/5120761.html