You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Suman Sehgal (JIRA)" <ji...@apache.org> on 2008/08/07 06:57:44 UTC

[jira] Commented: (HADOOP-3913) Distcp allows copy even if directory permissions are 000.

    [ https://issues.apache.org/jira/browse/HADOOP-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620510#action_12620510 ] 

Suman Sehgal commented on HADOOP-3913:
--------------------------------------

When different user tries to copy data between different versions of hadoop for the above mentioned scenario then
following error message appears:

bash-3.00$ hadoop distcp -conf <conf-dir>/hadoop-site.xml -p  hftp://<nn1>:<port>/docs/linkmap.html
hdfs://<nn2>:<port>/suman
08/08/01 10:52:11 INFO util.CopyFiles: srcPaths=[hftp://<nn1>:<port>/docs/linkmap.html]
08/08/01 10:52:11 INFO util.CopyFiles: destPath=hdfs://<nn2>:<port>/suman
-------------------------------------------------------------------------------
With failures, global counters are inaccurate; consider running with -i
Copy failed: org.apache.hadoop.mapred.InvalidInputException: Input source
hftp://<nn1>:<port>/docs/linkmap.html does not exist.
--------------------------------------------------------------------------------
        at org.apache.hadoop.util.CopyFiles.checkSrcPath(CopyFiles.java:578)
        at org.apache.hadoop.util.CopyFiles.copy(CopyFiles.java:594)
        at org.apache.hadoop.util.CopyFiles.run(CopyFiles.java:743)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
        at org.apache.hadoop.util.CopyFiles.main(CopyFiles.java:763)


Instead of the above error message, "Permission denied" message should be displayed in order to aviod
confusion.



> Distcp allows copy even if directory permissions are 000.
> ---------------------------------------------------------
>
>                 Key: HADOOP-3913
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3913
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: tools/distcp
>    Affects Versions: 0.18.0
>            Reporter: Suman Sehgal
>
> distcp initiated from 0.17.0 and 0.18.0 permissions turned ON, directory with permission 000, data gets copied from
> 0.18.0 to 0.17.0 
> Data gets copied between different versions of hadoop when tried by the same user. It gets failed only if other
> user(other than the user who started cluster) tries to copy data using distcp.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.