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 290A4E8CA for ; Thu, 28 Feb 2013 06:27:49 +0000 (UTC) Received: (qmail 63922 invoked by uid 500); 28 Feb 2013 06:27:44 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 63678 invoked by uid 500); 28 Feb 2013 06:27:44 -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 63665 invoked by uid 99); 28 Feb 2013 06:27:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 06:27:43 +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 (nike.apache.org: domain of harsh@cloudera.com designates 209.85.223.170 as permitted sender) Received: from [209.85.223.170] (HELO mail-ie0-f170.google.com) (209.85.223.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 06:27:36 +0000 Received: by mail-ie0-f170.google.com with SMTP id c11so1687371ieb.1 for ; Wed, 27 Feb 2013 22:27:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=wC8x9VQclYtfdqFnSd66C2KGQpkIVSFcFmBfyZwSqzc=; b=FCS0I8b7YiZUGbBL5BZG8Yi195PpAoC53qHsDWVRh3GGf9d7NtZ4n0hUn2xF/3cRIH 0CHY/lZJQggE42ZHSyTIXWlbWbvSM527ZtExPlHPrlDq+9+H+yPmZGCGV4f6fuhj9gDL E2d1/TiURo0NEy7gwfPhyEr4EZw2k2adCwuU4D/eSIi1QrWZ5x/JdBcRMQOhmEPY/60e NbuV4sKsmR3kzEa0MCekjPCzoArHQ0SGhFfivI3F+8ZLIn0iTCMUhSSlP/pcGDN8nQXO IuhgtgMevpZNrwAmGIRYHaKqltLYta57HujKCWbAOx2GWfpMKahF6QunFAKt3Na2bdKU A8ug== X-Received: by 10.50.219.228 with SMTP id pr4mr8786611igc.40.1362032835347; Wed, 27 Feb 2013 22:27:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.181.198 with HTTP; Wed, 27 Feb 2013 22:26:55 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Thu, 28 Feb 2013 11:56:55 +0530 Message-ID: Subject: Re: How to find Replication factor for one perticular folder in HDFS To: "" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnSDbBua+SiAKaSQgUJMQakOzryyE+h9Fu7/DCwwyd2IwZ9YvxINK7Masv9ahR7GyYH3k5Q X-Virus-Checked: Checked by ClamAV on apache.org Its "hdfs getconf", not "hdfs -getconf". The first sub-command is not an option arg, generally, when using the hadoop/hdfs/yarn/mapred scripts. On Wed, Feb 27, 2013 at 3:40 PM, Dhanasekaran Anbalagan wrote: > HI YouPeng Yang , > > Hi already configured dfs.replication factor=2 > >>> 1. To get the key from configuration : > /bin/hdfs -getconf -conKey dfs.replication > > hdfs@dvcliftonhera227:~$ hdfs -getconf -conKey dfs.replication > Unrecognized option: -getconf > Could not create the Java virtual machine. > > Please guide me. > > -Dhanasekaran > > > Did I learn something today? If not, I wasted it. > > > On Mon, Feb 25, 2013 at 7:31 PM, YouPeng Yang > wrote: >> >> 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 >>> 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 >> >> > -- Harsh J