mover

Runs the data migration utility, and it’s similar to Balancer. This utility periodically scans the files in HDFS to check if the block placement satisfies the storage policy. For the blocks violating the storage policy, it moves the replicas to a different storage type in order to fulfill the storage policy requirement.

This utility always tries to move block replicas within the same node whenever possible. If that is not possible (e.g. when a node doesn’t have the target storage type), then it will copy the block replicas to another node over the network.

NOTE

When both -p and -f options are omitted, the default path is the root directory.

The usage is as follows:

$ hdfs mover [-p <files/dirs> | -f <local file name>]
Arguments

-f <local file>

Specifies a local file containing a list of HDFS files/dirs to migrate

-p <files/dirs>

Specifies a space-separated list of HDFS files/dirs to migrate

Found a mistake? Seleсt text and press Ctrl+Enter to report it