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
    

No comments:

Post a Comment