hdfs dfsadmin -allowSnapshot /input
hdfs dfs -createSnapshot /input backup_input_01
hdfs lsSnapshottableDir
hdfs snapshotDiff /input backup_input_01 backup_input_02
![group](imgs/group.png)hdfs dfs -cp /input/.snapshot/backup_input_01/data.txt /input
原文:https://www.cnblogs.com/TiePiHeTao/p/11503971.html