Showing posts with label set change replication factor hadoop FsShell load. Show all posts
Showing posts with label set change replication factor hadoop FsShell load. Show all posts

Friday, August 15, 2014

Set replication for files in Hadoop

  • 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