Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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?

2 REPLIES 2

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)?

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.