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 274496CCC for ; Wed, 22 Jun 2011 21:35:46 +0000 (UTC) Received: (qmail 17110 invoked by uid 500); 22 Jun 2011 21:35:45 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 17064 invoked by uid 500); 22 Jun 2011 21:35:45 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 17056 invoked by uid 99); 22 Jun 2011 21:35:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 21:35:45 +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 joey@cloudera.com designates 74.125.83.176 as permitted sender) Received: from [74.125.83.176] (HELO mail-pv0-f176.google.com) (74.125.83.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 21:35:37 +0000 Received: by pve37 with SMTP id 37so1134793pve.35 for ; Wed, 22 Jun 2011 14:35:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.17.233 with SMTP id r9mr812319pbd.1.1308778516201; Wed, 22 Jun 2011 14:35:16 -0700 (PDT) Received: by 10.68.71.137 with HTTP; Wed, 22 Jun 2011 14:35:16 -0700 (PDT) In-Reply-To: <4E0254B6.2000304@gmail.com> References: <4E0254B6.2000304@gmail.com> Date: Wed, 22 Jun 2011 17:35:16 -0400 Message-ID: Subject: Re: hdfs reformat confirmation message From: Joey Echeverria To: mapreduce-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org You could pipe 'yes' to the hadoop command: yes | hadoop namenode -format -Joey On Wed, Jun 22, 2011 at 4:46 PM, Virajith Jalaparti wrote: > Hi, > > When I try to reformat HDFS (I have to multiple times for some experiment I > need to run), it asks for a confirmation Y/N. Is there a way to disable this > in HDFS/hadoop? I am trying to automate my process and pressing Y everytime > I do this is just a lot of manual work. > > Thanks, > Virajith > -- Joseph Echeverria Cloudera, Inc. 443.305.9434