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

Daryn Sharp commented on HADOOP-9214:
-------------------------------------

Let's not add inconsistent semantics to the ancient touchz.  Touchz is "Creates 
a file of zero length".  It shouldn't conditionally fail for existing files 
depending on args passed.  At that point it's not creating a file of zero 
length.

I'd rather see a new "touch" command that implements posix semantics.  Ie. 
creates file if it doesn't exist, and/or updates times even for non-zero length 
files.  That would be very handy!

> Update touchz to allow modifying atime and mtime
> ------------------------------------------------
>
>                 Key: HADOOP-9214
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9214
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: tools
>    Affects Versions: 0.23.5
>            Reporter: Brian Burton
>            Assignee: Hrishikesh Gadre
>            Priority: Minor
>         Attachments: HADOOP-9214-001.patch, HADOOP-9214-002.patch, 
> HADOOP-9214-003.patch, HADOOP-9214-004.patch
>
>
> Currently there is no way to set the mtime or atime of a file from the 
> "hadoop fs" command line. It would be useful if the 'hadoop fs -touchz' 
> command were updated to include this functionality.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to