From hbase-user-return-4596-apmail-hadoop-hbase-user-archive=hadoop.apache.org@hadoop.apache.org Thu Jun 11 20:25:54 2009 Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 63729 invoked from network); 11 Jun 2009 20:25:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 20:25:54 -0000 Received: (qmail 28835 invoked by uid 500); 11 Jun 2009 20:25:43 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 28809 invoked by uid 500); 11 Jun 2009 20:25:43 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 28781 invoked by uid 99); 11 Jun 2009 20:25:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 20:25:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of saidtherobot@gmail.com designates 209.85.221.178 as permitted sender) Received: from [209.85.221.178] (HELO mail-qy0-f178.google.com) (209.85.221.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 20:25:32 +0000 Received: by qyk8 with SMTP id 8so2648573qyk.5 for ; Thu, 11 Jun 2009 13:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=1lbq80H1JgDfaIu2dM1oa7P6IoMOuRLHJzjhLqkZszI=; b=bdkhBkRy2rZV6jDjqm0x/dTtbueBrphhWgNkv7w3UMYVlMUHTAq/OTWcS0DxNoH2M8 0b6RPC79ymyabE0YW8HeW1X6JLbeqMux2K4bRSkXa940EDh0dBGBsaF66fIC6vG2tFXd qkI8mjexAXE07GfbXPj/5FVtmGSlnrdNjF10s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=j8YHUtQ3NxknTkxbzyzafjIBJyPPexO822+knUp7OgEiIRFHal5XefdXgepGWZAxAX /MeaKlGmyJno9bb8bvT+7ltISzNRK6ghjppJ04NxxqRQgFUct+rMPtHJwpQuy7XD+ZSq IkRBsx6ITn37r3SUrwFo3ITgJYh0lzAvOdtRo= MIME-Version: 1.0 Received: by 10.229.96.15 with SMTP id f15mr645259qcn.91.1244751910987; Thu, 11 Jun 2009 13:25:10 -0700 (PDT) Date: Thu, 11 Jun 2009 16:25:10 -0400 Message-ID: <2986c2f30906111325h7e6878e3raf941179988b7d08@mail.gmail.com> Subject: Changing output class type From: mike anderson To: hbase-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=00163683222a7ce6c0046c1863ad X-Virus-Checked: Checked by ClamAV on apache.org --00163683222a7ce6c0046c1863ad Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit This is probably a straightforward question, but I've banging my head against the wall with no results. I've been working off of the RowCounter example as well as this great blog post http://www.larsgeorge.com/2009/05/hbase-mapreduce-101-part-i.html, but all to no avail. What I'd like to do is change the output type from the map function within a Class that implements TableMap. I tried changing the types in the template for OutputCollector to Text and IntWritable (I also set the corresponding class in the initTableMapJob() method), but this threw compiler errors (see below). Do I need to write my own TableMap Interface? As a secondary question, what is the default 'key' passed to the map method from TableMap? The output from IdentityTableMap is something like "31 2e 66 69 72...", which appears to have no significant meaning, ascii character translation or otherwise. Thanks in advance for any help, links to other online references would be very welcome (especially examples)! Cheers, Mike compiler error: IdentityMapTwo.java:42: org.myorg.IdentityMapTwo.MyMapper is not abstract and does not override abstract method map(org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.io.RowResult,org.apache.hadoop.mapred.OutputCollector,org.apache.hadoop.mapred.Reporter) in org.apache.hadoop.mapred.Mapper static class MyMapper --00163683222a7ce6c0046c1863ad--