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 55FE7D2BA for ; Sat, 9 Feb 2013 17:58:14 +0000 (UTC) Received: (qmail 58866 invoked by uid 500); 9 Feb 2013 17:58:10 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 58771 invoked by uid 500); 9 Feb 2013 17:58:09 -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 58761 invoked by uid 500); 9 Feb 2013 17:58:09 -0000 Delivered-To: apmail-hadoop-core-user@hadoop.apache.org Received: (qmail 58757 invoked by uid 500); 9 Feb 2013 17:58:09 -0000 Delivered-To: apmail-lucene-hadoop-user@lucene.apache.org Received: (qmail 58753 invoked by uid 99); 9 Feb 2013 17:58:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Feb 2013 17:58:09 +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 ronan.lehane@gmail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-wg0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Feb 2013 17:58:02 +0000 Received: by mail-wg0-f47.google.com with SMTP id dr13so3683182wgb.2 for ; Sat, 09 Feb 2013 09:57:41 -0800 (PST) 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=jcHnK3F8jNOPnR3tYFSi53sZ15AoCLm4vp0UREUyeRA=; b=H+FRmIYzjQ7w/xt80nlYPqE3X0uyuxlPIu+D0+g3mOiyztwTtRStnZllJnsHOEZ3Iv 7C/jdSoQ1Vf7Xqvr2JzUsa3xrBSpS8loM0FP9W0p/C2eBiem/lQnezSraTs5LrBuQUFc 47Gi3UTBLpVEVpn7pt7zZHnCF0vOIIfkU5l/dv+vvX1hqSwXjGUfkTItARhgEI4OfKm0 WlXkOSglNgshBlGlptKQmw/zDMzvD7Z5hJyRu99kpVeqy+iiOhzBVuTiK5yfKbkS8LWk cCWgYBq4aABmyXJy2gGr/V+Ibyzus6zEdiw/7CSmxmcD/F8sRvA3m4OZHF72KPwty3lo duYA== MIME-Version: 1.0 X-Received: by 10.194.88.202 with SMTP id bi10mr15893064wjb.5.1360432661819; Sat, 09 Feb 2013 09:57:41 -0800 (PST) Received: by 10.194.43.201 with HTTP; Sat, 9 Feb 2013 09:57:41 -0800 (PST) Date: Sat, 9 Feb 2013 17:57:41 +0000 Message-ID: Subject: The method setMapperClass(Class) in the type Job is not applicable for the arguments From: Ronan Lehane To: hadoop-user@lucene.apache.org Content-Type: multipart/alternative; boundary=089e0102ee228c70c104d54e6995 X-Virus-Checked: Checked by ClamAV on apache.org --089e0102ee228c70c104d54e6995 Content-Type: text/plain; charset=ISO-8859-1 Hi All, I hope this is the right forum for this type of question so my apologies if not. I'm looking to write a map reduce program which is giving me the following compilation error: The method setMapperClass(Class) in the type Job is not applicable for the arguments (Class) The components involved are: 1. Setting the Mapper //Set the Mapper for the job. Calls MapClass.class job.setMapperClass(MapClass.class); 2. Setting the inputFormat to TextInputFormat //An InputFormat for plain text files. Files are broken into lines. //Either linefeed or carriage-return are used to signal end of line. //Keys are the position in the file, and values are the line of text.. job.setInputFormatClass(TextInputFormat.class); 3. Taking the data into the mapper and processing it public static class MapClass extends Mapper { public void map (LongWritable key, Text value,Context context) throws IOException, InterruptedException { Would anyone have any clues as to what would be wrong with the arguements being passed to the Mapper? Any help would be appreciated, Thanks. --089e0102ee228c70c104d54e6995--