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 2768EE363 for ; Wed, 16 Jan 2013 01:31:15 +0000 (UTC) Received: (qmail 73090 invoked by uid 500); 16 Jan 2013 01:31:10 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 72983 invoked by uid 500); 16 Jan 2013 01:31:10 -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 72976 invoked by uid 99); 16 Jan 2013 01:31:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 01:31:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Serge.Blazhiyevskyy@nice.com designates 192.114.148.4 as permitted sender) Received: from [192.114.148.4] (HELO mailil.nice.com) (192.114.148.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 01:31:03 +0000 X-IronPort-AV: E=Sophos;i="4.84,476,1355090400"; d="scan'208";a="6709882" Received: from NAEXCHC2.na.nice.com (172.24.65.35) by tlvcas01.nice.com (192.168.253.111) with Microsoft SMTP Server (TLS) id 8.3.279.1; Wed, 16 Jan 2013 03:30:42 +0200 Received: from NAMAIL.na.nice.com ([172.24.65.31]) by NAEXCHC2.na.nice.com ([fe80::8dda:c989:576d:a45%17]) with mapi; Tue, 15 Jan 2013 18:30:40 -0700 From: Serge Blazhiyevskyy To: "user@hadoop.apache.org" Date: Tue, 15 Jan 2013 18:30:37 -0700 Subject: Re: newbie question Thread-Topic: newbie question Thread-Index: Ac3ziRcX1n9FzdrIS8aGbmp06kaVDQ== Message-ID: <543F2659-D007-4242-A6B8-E257D2BFD6BC@nice.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Don't you need to set this conf.setMapperClass(Mapper.class); to BuildGraph? Serge SERGE BLAZHIYEVSKY Architect (T) +1 (650) 226-0511 (M) +1 (408) 772-2615 serge@nice.com www.nice.com On Jan 15, 2013, at 5:24 PM, jamal sasha > wrote: I have a mapper public class BuildGraph{ public void config(JobConf job){ <=3D=3Dthis block doesnt seems to b= e exexcuting at all :( super.configure(job); this.currentId =3D job.getInt("currentId",0); if (this.currentId!=3D0){ // I call a method from differnt class to build a distributed cache } } public void map(....){ .... } } now the main code where this is called.. public void run( String params,curId){ JobConf conf =3D new JobConf(classname.class); conf.setInt("currentId",299); <--note this i am setting the value here conf.setMapperClass(Mapper.class); //.... JobClient.runJob(conf); } But the problem is config method in the code is not executing as though "cu= rrentId" returns 299 in main loop but it is not set at all in the mapper cl= ass. what am i doing wrong