My Tech Notes
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment