Quantcast
Channel: My Tech Notes
Viewing all articles
Browse latest Browse all 90

Set replication for files in Hadoop

$
0
0
  • Change the existing files's replications

    hadoop fs -setrep -R -w 2 /data-dir
  • Set replication when loading a file

    hadoop fs -Ddfs.replication=2 -put local_file dfs_file

Viewing all articles
Browse latest Browse all 90

Trending Articles