hdfs dfsadmin -allowSnapshot /path hdfs dfs -createSnapshot /path snapshotNamehdfs dfsadmin -listSnapshots /pathhdfs dfs -cp /path/.snapshot/snapshotName /restore/pathhadoop fs -cp hdfs://source hdfs://backuphadoop distcp hdfs://source hdfs://backupfs.trash.interval=120(单位:分钟)hdfs dfs -mv /user/.Trash/Current/deleted_file /restore/path参考来源: