Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 B9807E62B for ; Tue, 26 Feb 2013 00:32:25 +0000 (UTC) Received: (qmail 64439 invoked by uid 500); 26 Feb 2013 00:32:20 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 64274 invoked by uid 500); 26 Feb 2013 00:32:20 -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 64267 invoked by uid 99); 26 Feb 2013 00:32:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 00:32:20 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yypvsxf19870706@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qa0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 00:32:13 +0000 Received: by mail-qa0-f44.google.com with SMTP id bv4so2017512qab.17 for ; Mon, 25 Feb 2013 16:31:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=8PVsZNRvHkqcIfe1CFG5IJtn+Yu2L2lGJJAbQfiyGh8=; b=UqKk4CGuZuiMXH54QqPHXnbWcCCUruczeELH9xIRUCRTNTj9oU4Mb9/aHwf12hI+JU 8MD8MuROFmtGUR+5hIvJa6+v6jqeCTqmRXBrosDQjueFLV/pGp+FAwYqTre7tYRV+aFj JBQMXHFWeHkrYxwBvokzhFbIyUjMp1qg2v/+MaRvxYtc8jrC7cbtitc+afCaAdngo7OE EKdOHXPkN9RG6VAgu//8xgrcbPe2DkpijqQPM7J8NruvXjwtgQiVai11/GYThImrshlu 65H7fkbFu8+z2aRfOiPsl8L22IG5E7qhAvQnzJWE/y0z+IUrzJqn4FRY0lOzk/mjupEe p+YQ== MIME-Version: 1.0 X-Received: by 10.224.146.196 with SMTP id i4mr14312692qav.0.1361838713117; Mon, 25 Feb 2013 16:31:53 -0800 (PST) Received: by 10.49.82.202 with HTTP; Mon, 25 Feb 2013 16:31:53 -0800 (PST) In-Reply-To: References: Date: Tue, 26 Feb 2013 08:31:53 +0800 Message-ID: Subject: Re: How to find Replication factor for one perticular folder in HDFS From: YouPeng Yang To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=089e010d981abcbf1204d695c830 X-Virus-Checked: Checked by ClamAV on apache.org --089e010d981abcbf1204d695c830 Content-Type: text/plain; charset=ISO-8859-1 Hi Dhanasekaran Anbalagan 1. To get the key from configuration : /bin/hdfs -getconf -conKey dfs.replication 2.Maybe you can add the attribute true to your dfs.replication : dfs.replication 2 true regards. 2013/2/26 Nitin Pawar > see if the link below helps you > > > http://www.michael-noll.com/blog/2011/10/20/understanding-hdfs-quotas-and-hadoop-fs-and-fsck-tools/ > > > On Mon, Feb 25, 2013 at 10:36 PM, Dhanasekaran Anbalagan < > bugcy013@gmail.com> wrote: > >> Hi Guys, >> >> How to query particular folder witch replication factor configured. In my >> cluster some folder in HDFS configured 2 and some of them configured as >> three. How to query. >> >> please guide me >> >> -Dhanasekaran >> >> Did I learn something today? If not, I wasted it. >> > > > > -- > Nitin Pawar > --089e010d981abcbf1204d695c830 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi=A0Dhanasekaran Anbalagan

=
=A0 1. To get the key from configuration :
=A0 =A0 <your-path>/bin/hdfs -getconf -conKey dfs.re= plication
=A0 =A0

=
=A0 =A02.Maybe you can add the attribute
= =A0 =A0<final>true</final> to your=A0dfs.replication :

=A0 =A0<property&g= t;=A0
=A0 =A0 =A0 =A0 <name>dfs.replication</name>
= =A0 =A0 =A0 =A0<value>2</value>
=A0 =A0 =A0 =A0<= ;final>true</final>
=A0=A0=A0=A0</property>=A0


regards.
=A0


2013/2/26 Nitin Pawar = <nitinpawar= 432@gmail.com>


On Mon, Feb 25, 2013 at 10:36 PM, Dhanasekaran Anbala= gan <bugcy013@gmail.com> wrote:
Hi Guys,
How to query=A0particular=A0folder witch=A0replication=A0factor= configured. In my cluster some folder in HDFS configured 2 and some of the= m configured as three. How to query.=A0

please guide me

-Dhanasekaran<= /div>
Did I learn something today? If not, I wasted i= t.



--
Nitin Pawar

--089e010d981abcbf1204d695c830--