hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: How to update the timestamp of a file in HDFS
Date Thu, 05 Sep 2013 05:36:44 GMT
There's no shell command (equivalent to Linux's touch) but you can use
the Java API: http://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileSystem.html#setTimes(org.apache.hadoop.fs.Path,%20long,%20long)

On Thu, Sep 5, 2013 at 10:58 AM, Ramasubramanian Narayanan
<ramasubramanian.narayanan@gmail.com> wrote:
> Hi,
>
> Can you please help on to update the date & timestamp of a file in HDFS.
>
> regards,
> Rams



-- 
Harsh J

Mime
View raw message