Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7943

DFS shell get/copy gives weird errors when permissions are wrong with directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 0.20.205.0
    • None
    • fs

    Description

      Let /foo be a directory in HDFS (issue does not occur with files) and /bar be a local dir. Do something like:

      $ chmod u-w /bar
      $ hadoop -get /foo/myfile /bar
      copyToLocal: Permission denied  # correctly tells me permission is denied
      $ hadoop -get /foo /bar
      copyToLocal: null           
      $ hadoop -get /foo/ /bar
      copyToLocal: No such file or directory
      

      I've been banging my head for a bit trying to figure out why hadoop thinks my directory doesn't exist, but it turns out the problem was just with my local permissions. The "Permission denied" error would've been a lot nicer to get.

      Attachments

        1. hadoop-7943.patch
          0.9 kB
          Ben West
        2. hadoop-7943.patch
          0.9 kB
          Ben West
        3. hadoop-7943-1.0.0.patch
          0.9 kB
          Ben West
        4. hadoop-7943-1.0.0v2.patch
          1.0 kB
          Ben West
        5. hadoop-7943-1.0v3.patch
          0.2 kB
          Ben West
        6. hadoop-7943-1.0v4.patch
          5 kB
          Ben West

        Activity

          People

            Unassigned Unassigned
            xodarap Ben West
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: