Prateek Dubey
Prateek Dubey

Reputation: 239

Replication Factor in SNAPSHOTS (in HDFS)

Can we change the replication factor in HDFS. Say if we enable a snapshot on a hdfs dir then in that case it will replicate the same way replication factor is set on that directory.

Replication Factor on hdfs dir - 3

Then for snapshots it would be - for requested snapshot dir : orignal dir *3 times + snapshot *3times

Is there a way by which we can alter the replication factor for snapshot directory in hdfs without altering anything with hdfs dir?

I'm taking snapshots on a given dir using Cloudera Manager

Upvotes: 0

Views: 322

Answers (1)

facha
facha

Reputation: 12522

As far as I know at the moment HDFS snapshots are read-only, so you can't change their replication factor.

Apart from that, Snapshot do not copy/replicate data. They are just poiners to original data. So, if you have a x3 replication setup on a snapshottable dir, it will remain x3 no matter how many snapshots you take of it.

Upvotes: 0

Related Questions