Sudhakar, will this set for the new files being written to those directories?
On Mon, Apr 28, 2014 at 5:52 PM, sudhakara st <[email protected]>wrote: > Changes the replication factor of a file. -R option is for recursively > increasing the replication factor of files within a directory. > > Example: > > - hadoop fs -setrep -w 3 -R /user/hadoop/dir1 > > hadoop dfs -setrep -R -w 1 /dir/ > > > On Mon, Apr 28, 2014 at 2:29 PM, Nitin Pawar <[email protected]>wrote: > >> DFS replication is set on the file level (block level) or at cluster >> level (if you do not specify the replication factor while writing the file >> then this one is picked). >> As per my understanding, there is nothing for directories. >> >> >> >> >> On Mon, Apr 28, 2014 at 2:12 PM, Meng QingPing <[email protected]>wrote: >> >>> Hi, >>> >>> I want set dfs.replication as 1 for dfs /tmp, set dfs.replication as 3 >>> for dfs /user. How to configure? Both /tmp and /user are generated by >>> mapreduce job or hive or sqoop. >>> >>> Thanks, >>> Jack >>> >> >> >> >> -- >> Nitin Pawar >> > > > > -- > > Regards, > ...sudhakara > > -- Nitin Pawar
