Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 7333B10546 for ; Sat, 8 Feb 2014 17:48:59 +0000 (UTC) Received: (qmail 52931 invoked by uid 500); 8 Feb 2014 17:48:51 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 52717 invoked by uid 500); 8 Feb 2014 17:48:51 -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 52710 invoked by uid 99); 8 Feb 2014 17:48:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Feb 2014 17:48:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Feb 2014 17:48:46 +0000 Received: by mail-ie0-f174.google.com with SMTP id tp5so2509157ieb.19 for ; Sat, 08 Feb 2014 09:48:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=mXItKTpRGDJ91JGvj3TgVK1RywuQhVxYGsFJe+Q9c7w=; b=AMkl+spGTq2PO+0CyAW5m96eyY/gjWrc2K/tx8ZQtY3cxjyas7SYTfybWgzbKPj9X2 quutu9qfs/J5Ngn9gMKGReIP8pC+DPt7TVowtWxR65EC1Ltb/Jzz9VGute5YQbLOHU4j WgtKdG0oSIBDuJEr/69gjkvtrqZvOyI0g5MhSSfT6fAqoAAN4Lt7D9V70LHjgMXxsUTj 7nRYCExwuxmMqLTJaOzsK1HrIqNuWXVxWrUHpDKGdpWRsZ5tuElGPWkFf+ejBdAWqqJJ cN/prz0oXVJSJv5usV5aVWKcetYVl2liGxMTJwFWE+pozDu2FwzzPapuw5kcLl3XHcML hcJg== X-Gm-Message-State: ALoCoQnEh31R2Un3X0T117M7NF7rzrA9TL5eN42JxhwDDVeFOqYq8vKwSniHzFev0m3/VZuuOKYd X-Received: by 10.50.41.106 with SMTP id e10mr5985525igl.37.1391881705678; Sat, 08 Feb 2014 09:48:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.61.97 with HTTP; Sat, 8 Feb 2014 09:48:05 -0800 (PST) In-Reply-To: <1391880803.70802.YahooMailNeo@web120705.mail.ne1.yahoo.com> References: <1391880803.70802.YahooMailNeo@web120705.mail.ne1.yahoo.com> From: Harsh J Date: Sat, 8 Feb 2014 23:18:05 +0530 Message-ID: Subject: Re: A hadoop command to determine the replication factor of a hdfs file ? To: "" , Raj Hadoop Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Raj, The 2nd column of any "hadoop fs -ls" output, and the "%r" option of the "hadoop fs -stat" commands both reveal the replication factor of a given file. On Sat, Feb 8, 2014 at 11:03 PM, Raj Hadoop wrote: > Hi, > > Is there a hadoop command to determine the replication factor of a hdfs file > ? Please advise. > > I know that "fs setrep" only changes the replication factor. > > Regards, > Raj -- Harsh J