Hadoop File command

Source: Internet
Author: User
Tags hadoop fs

The file System (FS) shell includes various shell-like commands that directly interact with the Hadoop distributed File Sy Stem (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> URIs

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 File command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.