码迷,mamicode.com
首页 > 其他好文 > 详细

hadoop文件命令

时间:2016-01-11 13:57:17      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:

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>

appendToFile

Usage: hadoop fs -appendToFile <localsrc> ... <dst>

cat

Usage: hadoop fs -cat URI [URI ...]

checksum

Usage: hadoop fs -checksum URI

chgrp

Usage: hadoop fs -chgrp [-R] GROUP URI [URI ...]

chmod

Usage: hadoop fs -chmod [-R] <MODE[,MODE]... | OCTALMODE> URI [URI ...]

chown

Usage: hadoop fs -chown [-R] [OWNER][:[GROUP]] URI [URI ]

copyFromLocal

Usage: hadoop fs -copyFromLocal <localsrc> URI

copyToLocal

Usage: hadoop fs -copyToLocal [-ignorecrc] [-crc] URI <localdst>

count

Usage: hadoop fs -count [-q] [-h] [-v] <paths>

cp

Usage: hadoop fs -cp [-f] [-p | -p[topax]] URI [URI ...] <dest>

df

Usage: hadoop fs -df [-h] URI [URI ...]

du

Usage: hadoop fs -du [-s] [-h] URI [URI ...]

dus

Usage: hadoop fs -dus <args>

expunge

Usage: hadoop fs -expunge

find

Usage: hadoop fs -find <path> ... <expression> ...

get

Usage: hadoop fs -get [-ignorecrc] [-crc] <src> <localdst>

getfacl

Usage: hadoop fs -getfacl [-R] <path>

getfattr

Usage: hadoop fs -getfattr [-R] -n name | -d [-e en] <path>

getmerge

Usage: hadoop fs -getmerge <src> <localdst> [addnl]

help

Usage: hadoop fs -help

ls

Usage: hadoop fs -ls [-d] [-h] [-R] [-t] [-S] [-r] [-u] <args>

lsr

Usage: hadoop fs -lsr <args>

mkdir

Usage: hadoop fs -mkdir [-p] <paths>

moveFromLocal

Usage: hadoop fs -moveFromLocal <localsrc> <dst>

moveToLocal

Usage: hadoop fs -moveToLocal [-crc] <src> <dst>

mv

Usage: hadoop fs -mv URI [URI ...] <dest>

put

Usage: hadoop fs -put <localsrc> ... <dst>

rm

Usage: hadoop fs -rm [-f] [-r |-R] [-skipTrash] URI [URI ...]

rmdir

Usage: hadoop fs -rmdir [--ignore-fail-on-non-empty] URI [URI ...]

rmr

Usage: hadoop fs -rmr [-skipTrash] URI [URI ...]

setfacl

Usage: hadoop fs -setfacl [-R] [-b |-k -m |-x <acl_spec> <path>] |[--set <acl_spec> <path>]

setfattr

Usage: hadoop fs -setfattr -n name [-v value] | -x name <path>

setrep

Usage: hadoop fs -setrep [-R] [-w] <numReplicas> <path>

stat

Usage: hadoop fs -stat [format] <path> ...

tail

Usage: hadoop fs -tail [-f] URI

test

Usage: hadoop fs -test -[defsz] URI

text

Usage: hadoop fs -text <src>

touchz

Usage: hadoop fs -touchz URI [URI ...]

truncate

Usage: hadoop fs -truncate [-w] <length> <paths>

usage

Usage: hadoop fs -usage command

 

http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/FileSystemShell.html

hadoop文件命令

标签:

原文地址:http://www.cnblogs.com/guanx_214/p/5120761.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!