Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CABBF4A11 for ; Mon, 9 May 2011 09:40:57 +0000 (UTC) Received: (qmail 7613 invoked by uid 500); 9 May 2011 09:40:55 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 7409 invoked by uid 500); 9 May 2011 09:40:55 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 7397 invoked by uid 99); 9 May 2011 09:40:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 09:40:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of abhay.ratnaparkhi@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-iw0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 09:40:48 +0000 Received: by iwr19 with SMTP id 19so6510343iwr.35 for ; Mon, 09 May 2011 02:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=e/JkUb0hMNC1Vp458GOxeuVYO8ob06ZniDHcLAYIOlg=; b=K94MBl3yK8E4xdFbMfyIQ0N1owaThC8HGQf3oKfIhhfOMhi8i7Qu7tPAw3WDIS3jnW re/1LEGccMbF/fgrnIZU2s3//C5LiHLiINohS72+f4cFw8m64r8U1s6wZCgSExSNYfFf 0vbIUa++wMK28t4E95a9P4qH0oj2DM0Nhmk5U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LQuUywNO0IGhCC9dAB96EWgvwY2xwl5ppI55KDGBN+ibymVSz43hJipenRf0XSKIKV sOXpqYNEfEgzqmHL/NOayPz0y7uXRmJYKwS5jv+4ypcuWGMPOP+CasAYq8xbeISuZUoJ BE1d59G4UGqhD/giwSa3CXXkOAa557nftVkTU= MIME-Version: 1.0 Received: by 10.42.134.129 with SMTP id l1mr5704255ict.73.1304934027616; Mon, 09 May 2011 02:40:27 -0700 (PDT) Received: by 10.42.179.129 with HTTP; Mon, 9 May 2011 02:40:26 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 May 2011 15:10:26 +0530 Message-ID: Subject: Re: NoSuchMethodError while calling a DAO method from Reducer From: abhay ratnaparkhi To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=90e6ba6137322be00c04a2d4a10c --90e6ba6137322be00c04a2d4a10c Content-Type: text/plain; charset=ISO-8859-1 I found that XML files are getting cached somewhere while running MR task. Even if my recently submitted job has new XML files (for ibatis queries), it's using XML files from previously submitted job. On Mon, May 9, 2011 at 1:27 PM, abhay ratnaparkhi < abhay.ratnaparkhi@gmail.com> wrote: > > I checked the class file and it's having the new methods. > It seems that previous class file for DAO is getting cached somewhere. > Does hadoop caches some files in a job? > > Abhay > > > > On Tue, May 3, 2011 at 7:22 PM, abhay ratnaparkhi < > abhay.ratnaparkhi@gmail.com> wrote: > >> I'm trying to run MR task to parse log files. >> I'm trying to store parsed results in to DB2 tables. >> >> I'm making database connection from Reduce function and storing data to >> database from there. >> (not using *DBOutputFormat *as I don't know how to store data in multiple >> tables by using that) >> >> I'm getting "*java.lang.NoSuchMethodError*" even though that method is >> present and class has been compiled properly. >> When I use same method in non MR code, it works fine. >> >> I've seen the class file from jar and the method is present there. >> Can anyone suggest why does it's unable to call method even if it's there? >> >> >> -05-03 09:35:00,575 FATAL org.apache.hadoop.mapred.TaskTracker: Error >> running child : java.lang.NoSuchMethodError: >> com/ibm/anonymization/data/AnalyticsDAO.insertUsage(Lcom/ibm/anonymization/beans/LogUsageRecord;)V >> at >> com.ibm.anonymization.parser.MRLogParser$ParsingReducer.reduce(MRLogParser.java:411) >> at >> com.ibm.anonymization.parser.MRLogParser$ParsingReducer.reduce(MRLogParser.java:1) >> at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:176) >> at >> org.apache.hadoop.mapred.Task$NewCombinerRunner.combine(Task.java:1222) >> at >> org.apache.hadoop.mapred.MapTask$MapOutputBuffer.sortAndSpill(MapTask.java:1265) >> at >> org.apache.hadoop.mapred.MapTask$MapOutputBuffer.flush(MapTask.java:1129) >> at >> org.apache.hadoop.mapred.MapTask$NewOutputCollector.close(MapTask.java:549) >> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:623) >> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305) >> at org.apache.hadoop.mapred.Child.main(Child.java:170) >> >> > --90e6ba6137322be00c04a2d4a10c--