October 2018
Beginner
220 pages
5h 33m
English
Creating snapshots in HDFS is a feature by which one can take a snapshot of the filesystem and preserve it. These snapshots can be used as data backup and provide DR in case of any data losses. Before you take a snapshot, you need to make the directory snapshottable. Use the following command:
hrishikesh@base0:/$ ./bin/hdfs dfsadmin -allowSnapshot <path>
Once this is run, you will get a message stating that it has succeeded. Now you are good to create a snapshot, so run the following command:
hrishikesh@base0:/$ ./bin/hdfs dfs -createSnapshot <path> <snapshot-name>
Once this is done, you will get a directory path to where this snapshot is taken. You can access the contents of your snapshot. The following screenshot shows ...
Read now
Unlock full access