[ 
https://issues.apache.org/jira/browse/HIVE-16294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16112497#comment-16112497
 ] 

Peter Vary commented on HIVE-16294:
-----------------------------------

There is a non public API to find out, if a directory is snapshottable or not:
- DFSClient.getSnapshottableDirListing(), or
- DistributedFileSystem.getSnapshottableDirListing())

IMO, here is how we should handle this:
- Create a Hadoop jira for requesting a public API.
- Until the API is available it is enough to check if the fs is an instance of 
DistributedFileSystem, and the filename is ".snapshot"
- Add a comment to remove this code, when the API is available.

But I would like to know how the more experienced guys think about this.
What do you think about this:[~aihuaxu], [~andrew.wang]?

Thanks,
Peter

> Support snapshot for truncate table
> -----------------------------------
>
>                 Key: HIVE-16294
>                 URL: https://issues.apache.org/jira/browse/HIVE-16294
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Query Processor
>            Reporter: Vihang Karajgaonkar
>            Assignee: Barna Zsombor Klara
>         Attachments: HIVE-16294.01.patch, HIVE-16294.02.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to