Pages

Change Replication factor (using Command)

To set replication of an individual file to 4:

$ hdfs dfs -setrep -w 4 /path/to/file

You can also do this recursively. To change replication of entire HDFS to 1:

$ hdfs dfs -setrep -R -w 1 /
Share:

No comments:

Post a Comment

Powered by Blogger.

Popular Posts