Support Questions
Find answers, ask questions, and share your expertise

Is there any way to get snapshot status of a directory with WebHDFS?

I know that `hdfs lsSnapshottableDir <path>` lists all the directories under <path> that are snapshot enabled. But I want to get the list of files and folders in a <path> with snapshot status as a flag. Is it possible?


Cloudera Employee

@Shahrukh Khan The snapshot operations APIs are only capable of creating / deleting snapshot on existing HDFS folder. But, is there any way to list the folders under a given path with their snapshot status (enabled or disabled)?

; ;