Hadoop Common
  1. Hadoop Common
  2. HADOOP-2191

dfs du and dus commands differ from POSIX standards

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.15.1, 0.16.0
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None

      Description

      Assuming the dfs commands follow POSIX standards, there are some problems with the DFS du and dus commands. I compared the DFS output with that of RHEL 4u5

      1. du a file/directory that does not exist:
      Linux: du: cannot access `something': No such file or directory
      DFS: Found 0 items

      2. dus a file/directory that does not exist:

      • Linux: du: cannot access `something': No such file or directory
      • DFS: /something 0
      1. Hadoop-2191_4.patch
        3 kB
        Mahadev konar
      2. Hadoop-2191_2.patch
        3 kB
        Mahadev konar
      3. Hadoop-2191_1.patch
        3 kB
        Mahadev konar

        Issue Links

          Activity

          Mukund Madhugiri created issue -
          Mukund Madhugiri made changes -
          Field Original Value New Value
          Link This issue is a clone of HADOOP-2190 [ HADOOP-2190 ]
          Mukund Madhugiri made changes -
          Description Assuming the dfs commands follow POSIX standards, there are some problems with the DFS ls and lsr commands. I compared the DFS output with that of RHEL 4u5

          1. ls a directory when there are no files/directories in that directory:
          Linux: No output
          DFS: Found 0 items

          2. ls a file/directory that does not exist:
          Linux: ls: /doesnotexist: No such file or directory
          DFS: Found 0 items

          3. lsr a directory that does not exist:
          Linux: ls: /doesnotexist: No such file or directory
          DFS: No output
          Assuming the dfs commands follow POSIX standards, there are some problems with the DFS du and dus commands. I compared the DFS output with that of RHEL 4u5

          1. du a file/directory that does not exist:
          Linux: du: cannot access `something': No such file or directory
          DFS: Found 0 items

          2. dus a file/directory that does not exist:
          - Linux: du: cannot access `something': No such file or directory
          - DFS: /something 0
          Mukund Madhugiri made changes -
          Link This issue blocks HADOOP-1677 [ HADOOP-1677 ]
          Nigel Daley made changes -
          Fix Version/s 0.16.0 [ 12312740 ]
          Mahadev konar made changes -
          Attachment Hadoop-2191_1.patch [ 12375423 ]
          Mahadev konar made changes -
          Assignee Mahadev konar [ mahadev ]
          Mahadev konar made changes -
          Attachment Hadoop-2191_2.patch [ 12375431 ]
          Mahadev konar made changes -
          Attachment Hadoop-2191_4.patch [ 12375432 ]
          Mahadev konar made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          dhruba borthakur made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 0.17.0 [ 12312913 ]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Nigel Daley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Owen O'Malley made changes -
          Component/s dfs [ 12310710 ]
          Gavin made changes -
          Link This issue blocks HADOOP-1677 [ HADOOP-1677 ]
          Gavin made changes -
          Link This issue is depended upon by HADOOP-1677 [ HADOOP-1677 ]

            People

            • Assignee:
              Mahadev konar
              Reporter:
              Mukund Madhugiri
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development