Issue Details (XML | Word | Printable)

Key: HADOOP-1677
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Mahadev konar
Reporter: Nigel Daley
Votes: 1
Watchers: 1
Operations

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

improve semantics of the hadoop dfs command

Created: 03/Aug/07 05:35 PM   Updated: 08/Jul/09 04:42 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.17.0

Time Tracking:
Not Specified

Issue Links:
Dependants
 

Resolution Date: 20/Feb/08 10:48 PM


 Description  « Hide
HADOOP-230 cover syntax changes. Capturing here some DFS command line semantic comments between Doug and I:

The goal for DFS should be "UNIX-like when possible". The goals of HDFS are primarily to be usable, scalable, reliable, high-performance, and, secondarily, not to be gratuitously incompatible with UNIX. So, when it's easy to be compatible, we certainly should. But when UNIX compatibility fights with one of those other goals, it may lose.

Two examples of incompatibilities with UNIX (that will need to be evaluated against the above goal), are:

UNIX: cp foo bar succeeds if bar exists
DFS: dfs -put foo bar fails if bar exists. (same for dfs -cp).

UNIX: mkdir foo fails if foo exists
DFS: dfs -mkdir succeeds silently if foo exists and is a directory (if foo is a file than it fails).

Many more such incompatibilities exist.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Enis Soztutar added a comment - 06/Aug/07 01:47 PM
+1 for unifying unix and hadoop fs semantics. I recall having some trouble about non-intuitive behavior in FsShell.

Mahadev konar added a comment - 20/Feb/08 10:48 PM
all the bugs and incosistencies have been fixed. closing this bug.