O'Reilly logo

Hadoop 2.x Administration Cookbook by Gurmukh Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HDFS snapshots

In spite of having high availability and replication factor as three, there are chances of data loss due to accidental deletions or corruptions. What if the user wants to restore the HDFS state to a previous point in time? Can that be done?

To address these issues, HDFS supports snapshots, which is a kind of backup in a point of time. However, snapshots do not occupy any extra space, as these are simply pointers to the original data blocks.

In this recipe, we will see how the snapshots can be enabled and configured.

Getting ready

Make sure that the user has a running cluster with HDFS configured. The user must be able to execute HDFS commands and copy some data to the cluster.

How to do it...

  1. Connect to the master1.cyrus.com Namenode ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required