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 42F95E5A4 for ; Mon, 4 Feb 2013 07:00:22 +0000 (UTC) Received: (qmail 46067 invoked by uid 500); 4 Feb 2013 07:00:17 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 45968 invoked by uid 500); 4 Feb 2013 07:00:16 -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 Delivered-To: moderator for user@hadoop.apache.org Received: (qmail 20968 invoked by uid 99); 4 Feb 2013 06:44:50 -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 austincv@gmail.com designates 74.125.82.52 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=6CG6JVqcbYrY9GFUhHjbR+zj6NyiZI1IEDYQuWSTLgE=; b=jyqkgk8RDq+Pr8y13FAoipMSdwRst6WxqMyWIdfQtfzvqq5BDVYsrhL/lxXxNS4Qo8 991CsQma8Xhchy5nAcE16quaQaQ2fa9KCsVLOOAthWUhcOjDrFTj+vwth2dwY5URB/YN Kdfqq7QosUbNM0MbMNa71HQi+3foTWHx6FoXagqLHJx91SXxSustYCnrHe9t3I+JYeNz iCegMHA5QJ63MpvyOqSs7slET9mXZV3uZ6etafGY0tW6dZOD+aaNemRtSjBSkmLjbdr8 Sj4cQI7gExHvcwBJuCK9kivYi0rqkUsvdUu7fvH2hJTerbHDdJzf3pz8QW+RP/OoAb0V kJPA== MIME-Version: 1.0 X-Received: by 10.180.8.4 with SMTP id n4mr8254143wia.13.1359960262476; Sun, 03 Feb 2013 22:44:22 -0800 (PST) Date: Mon, 4 Feb 2013 12:14:22 +0530 Message-ID: Subject: how to set default replication factor for specific directories From: Austin Chungath To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=f46d04428f185a84ec04d4e06c08 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04428f185a84ec04d4e06c08 Content-Type: text/plain; charset=ISO-8859-1 Hi, Is there any way for setting the default replication factor for specific directories? The default replication factor is 3 for the cluster. I don't want to change this global default, but I want specific directories to have different replication factor. I can use the following command to set the replication factor of files after they are created, but how to make it default for that directory? hadoop dfs -setrep -R -w 1 /user Thanks, Austin --f46d04428f185a84ec04d4e06c08 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

Is there any way for setting the default replication= factor for specific directories?
The default replication factor = is 3 for the cluster. I don't want to change this global default, but I= want specific directories to have different replication factor.
I can use the following command to set the replication factor of files= after they are created, but how to make it default for that directory?
hadoop dfs -setrep -R -w 1 /user

Thanks,
Austin
--f46d04428f185a84ec04d4e06c08--