get

Copies files to the local file system. Files that fail the CRC check may be copied with the -ignorecrc option. Files and CRCs may be copied using the -crc option.

Returns 0 on success and -1 on error.

The usage is as follows:

$ hadoop fs -get [-ignorecrc] [-crc] [-p] [-f] <src> <localdst>
Arguments

-p

Preserves access and modification times, ownership and the sessions, assuming the permissions can be propagated across filesystems

-f

Overwrites the destination if it already exists

-ignorecrc

Skips CRC checks on the file(s) downloaded

-crc

Writes CRC checksums for the downloaded files

Examples:

$ hadoop fs -get /user/hadoop/file localfile
$ hadoop fs -get hdfs://nn.example.com/user/hadoop/file localfile
Found a mistake? Seleсt text and press Ctrl+Enter to report it