Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce >> mail # user >> How to update the timestamp of a file in HDFS


+
Ramasubramanian Narayanan... 2013-09-05, 05:28
+
Harsh J 2013-09-05, 05:36
+
murali adireddy 2013-09-05, 06:44
Copy link to this message
-
Re: How to update the timestamp of a file in HDFS
right usage of command is:

hadoop fs - touchz filename
On Thu, Sep 5, 2013 at 12:14 PM, murali adireddy
<[EMAIL PROTECTED]>wrote:

> Hi ,
>
> Try this "touchz" hadoop command.
>
> hadoop -touchz filename
>
>
> Thanks and Regards,
> Adi Reddy Murali
>
>
> On Thu, Sep 5, 2013 at 11:06 AM, Harsh J <[EMAIL PROTECTED]> wrote:
>
>> 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
>> <[EMAIL PROTECTED]> wrote:
>> > Hi,
>> >
>> > Can you please help on to update the date & timestamp of a file in HDFS.
>> >
>> > regards,
>> > Rams
>>
>>
>>
>> --
>> Harsh J
>>
>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB