You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Karthik Palanisamy (JIRA)" <ji...@apache.org> on 2019/02/26 20:15:00 UTC
[jira] [Created] (HDFS-14320) SkipTrash for WebHDFS
Karthik Palanisamy created HDFS-14320:
-----------------------------------------
Summary: SkipTrash for WebHDFS
Key: HDFS-14320
URL: https://issues.apache.org/jira/browse/HDFS-14320
Project: Hadoop HDFS
Issue Type: New Feature
Components: namenode, webhdfs
Affects Versions: 3.2.0
Reporter: Karthik Palanisamy
Assignee: Karthik Palanisamy
Files/Directories deleted via webhdfs rest call doesn't use the skiptrash feature, it would be deleted permanently. This feature is very important us because our user has deleted large directory accidentally.
By default, Skiptrash option is set to true, skiptrash=true. Any files, Using CURL will be permanently deleted.
Example:
curl -iv -X DELETE "http://xxxx:50070/webhdfs/v1/tmp/sampledata?op=DELETE&user.name=hdfs&recursive=true"
Use skiptrash=false, to move files to trash Instead.
Example:
curl -iv -X DELETE "http://xxxx:50070/webhdfs/v1/tmp/sampledata?op=DELETE&user.name=hdfs&recursive=true&skiptrash=false"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org