You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Manoj Samel <ma...@gmail.com> on 2014/04/28 20:42:05 UTC

HDFS snapshotdiff shows only the top level directory, not the entire tree that was modified

Hi,

Following seq is done

hdfs dfs -mkdir /a
take snapshot s_0
hdfs dfs -mkdir -p /a/b/c
hdfs dfs -put foo /a/b/c
take snapshot s_1

Now the command line snapshotdiff between s_0 and s_1 shows just the
addition of directory "b". It should show addition of directory "b/c" as
well as addition of "b/c/foo" as well

Any thoughts ?

If I instead write java program that uses the java API getSnapshotDiffReport,
will it get the entire directory tree?

Thanks,