Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 7069B11B50 for ; Fri, 20 Jun 2014 07:44:01 +0000 (UTC) Received: (qmail 50101 invoked by uid 500); 20 Jun 2014 07:43:57 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 49991 invoked by uid 500); 20 Jun 2014 07:43:57 -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 49980 invoked by uid 99); 20 Jun 2014 07:43:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 07:43:56 +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 (athena.apache.org: domain of unmeshabiju@gmail.com designates 74.125.82.182 as permitted sender) Received: from [74.125.82.182] (HELO mail-we0-f182.google.com) (74.125.82.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 07:43:52 +0000 Received: by mail-we0-f182.google.com with SMTP id q59so3396310wes.13 for ; Fri, 20 Jun 2014 00:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=qF4Gf9GXMUWq/z8TUU9Pk9JXqRZdj+o2H5uD69HDfUU=; b=wHgRMSpgqs/8EJbrT9YSXo4Eo87FXqrAqt+wufM/rRFQ6vSgAosZHnS1lnGYLsG88C ygvS6GfDx5ZdxL0xNdYQ4/fF60O+ZtzXNM6xhTTJ5pMh55m3PDq6hZRAyXkhw7G3PSxu 5bWdwcnkFUZWabuTpPVMWrywVTSQHeNSmAC2h1n3kvynWOsRkR88sB8kZXTxKIdnQYXF Jyv0eEdcNkHF06nIl6sMRAspITGyK1DgDOkGTe8i3iRMewNghzfdgExo5NBs+3O06Hko peFwVpVgGBqYqukZh5hdeMvZHyWZuJREMSXgRlfvUmrvRSIN2NgTgQKDYUwa1BcnfUuA tE6g== X-Received: by 10.180.72.15 with SMTP id z15mr2054139wiu.46.1403250211486; Fri, 20 Jun 2014 00:43:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.68.200 with HTTP; Fri, 20 Jun 2014 00:42:51 -0700 (PDT) In-Reply-To: References: From: unmesha sreeveni Date: Fri, 20 Jun 2014 13:12:51 +0530 Message-ID: Subject: Re: Map reduce query To: User Hadoop Content-Type: multipart/alternative; boundary=001a11c2ab6462fff104fc3fa680 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2ab6462fff104fc3fa680 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi You can directly use this right? FileInputFormat.setInputPaths(job,new Path(args[0])); FileOutputFormat.setOutputPath(job, new Path(args[1])); Or you need extra input file to feed into mapper? On Fri, Jun 20, 2014 at 11:57 AM, Shrivastava, Himnshu (GE Global Research, Non-GE) wrote: > How can I give Input to a mapper from the command line? =E2=80=93D optio= n can be > used but what are the corresponding changes required in the mapper and th= e > driver program ? > > > > Regards, > --=20 *Thanks & Regards * *Unmesha Sreeveni U.B* *Hadoop, Bigdata Developer* *Center for Cyber Security | Amrita Vishwa Vidyapeetham* http://www.unmeshasreeveni.blogspot.in/ --001a11c2ab6462fff104fc3fa680 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi

You can directly use this right?

FileInpu= tFormat.setInputPaths(job,new Path(args[0]));
FileOutputFormat.setOutputPath(job, new Path(a= rgs[1]));

Or you need extra input file to feed into mapper?
=


On Fri, Jun 20, 2014 at 11:57 AM, Shriva= stava, Himnshu (GE Global Research, Non-GE) <Himnshu.Shrivastav= a@ge.com> wrote:

How can I give Input to a mapper from the command li= ne? =E2=80=93D option can be used but what are the corresponding changes re= quired in the mapper and the driver program ?

=C2=A0

Regards,




--
Thanks & Regards

Unmesha Sreeveni U.B
Hadoop, Bigdata Developer
=
Center for Cyber Security | Amrita Vishwa Vidyap= eetham


<= /div>
--001a11c2ab6462fff104fc3fa680--