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

Charles Lamb commented on MAPREDUCE-6040:
-----------------------------------------

Hi [~sanjay.radia],

bq. Note distcp needs to be fixed for both superuser and normal user (see the 
use case table). Row 1 and 4 in the use cases table are same for root and 
normal user.

Wouldn't implementing the right side of Row 4 (non-superuser, to/from an ez) 
require that /.reserved/raw be accessible by non-root? Presently, /.r/r is only 
accessible to the superuser.

The theory is that if a non-superuser wants to use distcp to copy encrypted 
files to/from an ez, then they just invoke distcp without /.reserved/raw. The 
net effect is the same (encrypted files are copied from src-ez to dest-ez), 
it's just that the mechanism is different (super user uses /.r/r and copies 
encrypted bits, non-su user does not use /.r/r and copies decrypted bits).


> distcp should automatically use /.reserved/raw when run by the superuser
> ------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6040
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6040
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: distcp
>    Affects Versions: 3.0.0
>            Reporter: Andrew Wang
>            Assignee: Charles Lamb
>         Attachments: HDFS-6134-Distcp-cp-UseCasesTable2.pdf, 
> MAPREDUCE-6040.001.patch
>
>
> On HDFS-6134, [~sanjay.radia] asked for distcp to automatically prepend 
> /.reserved/raw if the distcp is being performed by the superuser and 
> /.reserved/raw is supported by both the source and destination filesystems. 
> This behavior only occurs if none of the src and target pathnames are 
> /.reserved/raw.
> The -disablereservedraw flag can be used to disable this option.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to