Hi,

It seems the only restore from a HDFS snapshot using hdfs command line is copy snapshot files to a target path.

If the use cases are


0. .... stuff ...

1. Take snapshot s_N

2. Add some files, delete other files

3. Take snapshot s_N+1


then copying s_N+1 to target just copies the newly added file to target, it does not propagates the deletes between s_N and s_N+1.

How does one apply the full delta between s_N and s_N+1 to target (and not just additions) ? Is Using Java API the only option or is it possible to use command line to do it ?

Thanks,