hdfs 快照管理

快照管理
--------------------
	1.描述
	  迅速对文件(夹)进行备份。不产生新文件,使用差值存储。
	  默认是禁用快照,先启用。
	2.命令
	  $>hdfs dfsadmin -allowSnapShot dir1		//在dir1启用快照
	  $>hdfs dfsadmin -disallowSnapShot dir1	//在dir1启用快照
	  $>hdfs dfs -createSnapshot dir ss1		//创建快照
	  $>hdfs dfs -renameSnapshot dir ss1 ss2	//重命名
	  $>hdfs dfs -deleteSnapshot dir ss1		//删除快照

猜你喜欢

转载自blog.csdn.net/qq_37668945/article/details/83141890