Issue Details (XML | Word | Printable)

Key: HADOOP-2191
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Mahadev konar
Reporter: Mukund Madhugiri
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

dfs du and dus commands differ from POSIX standards

Created: 12/Nov/07 06:57 PM   Updated: 08/Jul/09 04:42 PM
Return to search
Component/s: None
Affects Version/s: 0.15.1, 0.16.0
Fix Version/s: 0.17.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works Hadoop-2191_1.patch 2008-02-12 10:45 PM Mahadev konar 3 kB
Text File Licensed for inclusion in ASF works Hadoop-2191_2.patch 2008-02-12 11:56 PM Mahadev konar 3 kB
Text File Licensed for inclusion in ASF works Hadoop-2191_4.patch 2008-02-13 12:15 AM Mahadev konar 3 kB
Issue Links:
Cloners
 
Dependants
 

Resolution Date: 13/Feb/08 06:19 AM


 Description  « Hide
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


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Mukund Madhugiri made changes - 12/Nov/07 06:57 PM
Field Original Value New Value
Link This issue is a clone of HADOOP-2190 [ HADOOP-2190 ]
Mukund Madhugiri made changes - 12/Nov/07 07:00 PM
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 - 13/Nov/07 10:18 PM
Link This issue blocks HADOOP-1677 [ HADOOP-1677 ]
Nigel Daley made changes - 22/Jan/08 07:32 PM
Fix Version/s 0.16.0 [ 12312740 ]
Mahadev konar made changes - 12/Feb/08 10:45 PM
Attachment Hadoop-2191_1.patch [ 12375423 ]
Mahadev konar made changes - 12/Feb/08 10:45 PM
Assignee Mahadev konar [ mahadev ]
Mahadev konar made changes - 12/Feb/08 11:56 PM
Attachment Hadoop-2191_2.patch [ 12375431 ]
Mahadev konar made changes - 13/Feb/08 12:15 AM
Attachment Hadoop-2191_4.patch [ 12375432 ]
Mahadev konar made changes - 13/Feb/08 12:27 AM
Status Open [ 1 ] Patch Available [ 10002 ]
dhruba borthakur made changes - 13/Feb/08 06:19 AM
Fix Version/s 0.17.0 [ 12312913 ]
Resolution Fixed [ 1 ]
Status Patch Available [ 10002 ] Resolved [ 5 ]
Nigel Daley made changes - 21/May/08 08:05 PM
Status Resolved [ 5 ] Closed [ 6 ]
Owen O'Malley made changes - 08/Jul/09 04:42 PM
Component/s dfs [ 12310710 ]