[
https://issues.apache.org/jira/browse/HDFS-15243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17068513#comment-17068513
]
Ayush Saxena commented on HDFS-15243:
-------------------------------------
You tend to allow read/write but just prevent delete?
prevent deletion of sub-directories or even files under the protected
directories?
Can you elaborate a little more.
In any case, we can't change the existing behavior, may be we can introduce a
new configuration, to make the protected-Directories recursive or something
like that.
Let me know if you would like to work on this, Will assign the Jira to you..
> Child directory should not be deleted or renamed if parent directory is a
> protected directory
> ---------------------------------------------------------------------------------------------
>
> Key: HDFS-15243
> URL: https://issues.apache.org/jira/browse/HDFS-15243
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: 3.1.1
> Affects Versions: 3.1.1
> Reporter: liuyanyu
> Priority: Major
>
> HDFS-8983 add fs.protected.directories to support protected directories on
> NameNode. But as I test, when set a parent directory(eg /testA) to
> protected directory, the child directory (eg /testA/testB) still can be
> deleted or renamed. When we protect a directory mainly for protecting the
> data under this directory , So I think the child directory should not be
> delete or renamed if the parent directory is a protected directory.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]