Description
Motivation: This is needed to support encryption zones on WebhdfsFileSystem.
For writing into EZ directory, webhdfs client will encrypt data on client side and will always write into /.reserved/raw/ directory so that datanode will not encrypt since its writing to /.reserved/raw directory.
But then we have to somehow set crypto related x-attrs on the file.
Currently only super user is allowed to set x-attrs.
So I am proposing that the file owner(and superuser) should be allowed to set crypto related x-attrs if they are already not set.
Attachments
Issue Links
- is related to
-
HDFS-12597 Add CryptoOutputStream to WebHdfsFileSystem create call.
- Open