hadoop - Can Hdfs has different replication policy -
can have different replication policy in different folder in hdfs? example files in folder /important_data wanna it's replicate 3, files in folder /normal_data wanna it's replicate 1. thanks!
you can use setrep set replication
hadoop fs –setrep –w 3 -r /my/dir1 hadoop fs –setrep –w 1 -r /my/dir2
you set custom replication on file too.
hadoop fs –setrep –w 3 /my/file
here documentation http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/filesystemshell.html#setrep
Comments
Post a Comment