Details
Description
Shell (Before)
# createSnapshot has feedback $ hdfs dfs -createSnapshot /dst/ snap1 Created snapshot /dst/.snapshot/snap1 # renameSnapshot doesn't have feedback if it succeeded $ hdfs dfs -renameSnapshot snap1 snap2 /dst/ (No output) # deleteSnapshot doesn't have feedback if it succeeded $ hdfs dfs -deleteSnapshot /dst/ snap2 (No output) # rm has feedback $ hdfs dfs -rm -skipTrash /dst/2.txt Deleted /dst/2.txt
Shell (After)
... $ hdfs dfs -renameSnapshot snap1 snap2 /dst/ Renamed snapshot snap1 to snap2 under hdfs://server:port/dst $ hdfs dfs -deleteSnapshot /dst/ snap2 Deleted snapshot snap2 under hdfs://server:port/dst