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>
-archiveName |
The name of an .har archive to create |
-p |
The relative path to which the files should be archived to.
For example: |
-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