archive

Creates a Hadoop archive. More information on working with archives can be found at Hadoop Archives Guide.

The usage is as follows:

$ hadoop archive -archiveName name -p <parent> [-r <replication factor>] <src>* <dest>
Arguments

-archiveName

The name of an .har archive to create

-p

The relative path to which the files should be archived to. For example: -p /foo/bar a/b/c e/f/g where /foo/bar is the parent path and a/b/c, e/f/g are relative paths to parent.

-r

Sets the desired replication factor. If this optional argument is not specified, a replication factor of 3 is used.

Example:

$ hadoop archive -archiveName zoo.har -p /foo/bar -r 3 /outputdir
Found a mistake? Seleсt text and press Ctrl+Enter to report it