Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF94110E9F for ; Thu, 5 Sep 2013 06:46:02 +0000 (UTC) Received: (qmail 44289 invoked by uid 500); 5 Sep 2013 06:45:57 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 44134 invoked by uid 500); 5 Sep 2013 06:45:38 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 44122 invoked by uid 99); 5 Sep 2013 06:45:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 06:45:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of murali.adireddy@gmail.com designates 209.85.212.49 as permitted sender) Received: from [209.85.212.49] (HELO mail-vb0-f49.google.com) (209.85.212.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 06:45:31 +0000 Received: by mail-vb0-f49.google.com with SMTP id w16so826405vbb.8 for ; Wed, 04 Sep 2013 23:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=NirzOytK2MnbilO48Q7ZIavU7JBths3CTC3xvhLqz0M=; b=FBllShYlgLtcTvKyk6gonakI5kqCo3ICvz/KGNb9A4Pw6LgXSsLAthZfcrGcKPRMeT PiImBMyq6O13wI3JT8ut1yyjjK4y9kqmnFKdPRY9gaHmYijkCVDrQLjRcANzg+cuDRk7 gQWHN/PFK+Hk5IAhuYJXr3P8akg12N8ccXM1E/9J4JXAlyl+SrYgP0eQPTQH4NYncVLI AVKpNQqmeo339iBZWoG1agBgp/1hPYL4ZITc/Ta9qiHDbNGTngupDhHeAWWF/ZQDWwlf d/DZCA6/vXOHYj+xCoGbo3NthGrE8EK0jVdiOn+qoZK6WWKRqAJQN+bZ0hWg7FtdI84x pkMg== MIME-Version: 1.0 X-Received: by 10.58.211.227 with SMTP id nf3mr6384251vec.20.1378363498227; Wed, 04 Sep 2013 23:44:58 -0700 (PDT) Received: by 10.58.230.35 with HTTP; Wed, 4 Sep 2013 23:44:58 -0700 (PDT) In-Reply-To: References: Date: Thu, 5 Sep 2013 12:14:58 +0530 Message-ID: Subject: Re: How to update the timestamp of a file in HDFS From: murali adireddy To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7bd6b65aaeeedf04e59d4200 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bd6b65aaeeedf04e59d4200 Content-Type: text/plain; charset=ISO-8859-1 right usage of command is: hadoop fs - touchz filename On Thu, Sep 5, 2013 at 12:14 PM, murali adireddy 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 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 >> wrote: >> > Hi, >> > >> > Can you please help on to update the date & timestamp of a file in HDFS. >> > >> > regards, >> > Rams >> >> >> >> -- >> Harsh J >> > > --047d7bd6b65aaeeedf04e59d4200 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
right usage of command is:

hadoop fs - = touchz filename


On Thu, Sep 5, 2013 at 12:14 PM, murali adireddy <mu= rali.adireddy@gmail.com> 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 <harsh@cloudera.com> 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/apac= he/hadoop/fs/FileSystem.html#setTimes(org.apache.hadoop.fs.Path,%20long,%20= long)

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


--047d7bd6b65aaeeedf04e59d4200--